From 6f80b637fb6ca24b46a5a28e1ddf4dcc80b8121d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 7 Jul 2024 11:07:15 +0200 Subject: [PATCH] python312Packages.cpe: enable tests --- .../python-modules/cpe/default.nix | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/cpe/default.nix b/pkgs/development/python-modules/cpe/default.nix index fe73936a04f3..97f617bbd674 100644 --- a/pkgs/development/python-modules/cpe/default.nix +++ b/pkgs/development/python-modules/cpe/default.nix @@ -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 ]; }; }