python312Packages.cpe: enable tests

This commit is contained in:
Fabian Affolter 2024-07-07 11:07:15 +02:00 committed by GitHub
parent 98fa5a6797
commit 6f80b637fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ];
};
}