python310Packages.pastescript: disable on unsupported Python releases

This commit is contained in:
Fabian Affolter 2023-01-09 08:47:01 +01:00 committed by GitHub
parent fad243ffd2
commit 6448ff1db2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,16 +7,20 @@
, six , six
, paste , paste
, pastedeploy , pastedeploy
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pastescript"; pname = "pastescript";
version = "3.3.0"; version = "3.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
pname = "PasteScript"; pname = "PasteScript";
inherit version; inherit version;
sha256 = "sha256-3eyAGhOsZn4JTt3ij5AhLN6nvcmhjUNxsI9abvfS66I="; hash = "sha256-3eyAGhOsZn4JTt3ij5AhLN6nvcmhjUNxsI9abvfS66I=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -27,9 +31,15 @@ buildPythonPackage rec {
# test suite seems to unset PYTHONPATH # test suite seems to unset PYTHONPATH
doCheck = false; doCheck = false;
checkInputs = [ nose pytestCheckHook ];
pythonNamespaces = [ "paste" ]; checkInputs = [
nose
pytestCheckHook
];
pythonNamespaces = [
"paste"
];
disabledTestPaths = [ disabledTestPaths = [
"appsetup/testfiles" "appsetup/testfiles"