python312Packages.cpe: enable tests
This commit is contained in:
parent
98fa5a6797
commit
6f80b637fb
@ -1,10 +1,19 @@
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, sphinx, setuptools }:
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cpe";
|
||||
version = "1.2.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nilp0inter";
|
||||
repo = "cpe";
|
||||
@ -14,16 +23,21 @@ buildPythonPackage rec {
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ sphinx ];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "cpe" ];
|
||||
|
||||
doCheck = false;
|
||||
disabledTests = [
|
||||
# Tests are outdated
|
||||
"testfile_cpelang2"
|
||||
"test_incompatible_versions"
|
||||
"test_equals"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Common platform enumeration for python";
|
||||
homepage = "https://github.com/nilp0inter/cpe";
|
||||
license = lib.licenses.lgpl3Only;
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ tochiaha ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user