python311Packages.crc: disable on unsupported Python releases

- update ordering
This commit is contained in:
Fabian Affolter 2023-07-01 20:30:03 +02:00 committed by GitHub
parent e62eb7cbbe
commit 96ac17cf98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
@ -10,6 +11,8 @@ buildPythonPackage rec {
version = "4.3.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Nicoretti";
repo = pname;
@ -17,13 +20,21 @@ buildPythonPackage rec {
hash = "sha256-rH/jc6/gxww3NSCYrhu+InZX1HTTdJFfa52ioU8AclY=";
};
nativeBuildInputs = [ poetry-core ];
nativeBuildInputs = [
poetry-core
];
pythonImportsCheck = [ "crc" ];
nativeCheckInputs = [
pytestCheckHook
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"crc"
];
disabledTestPaths = [ "test/bench" ];
disabledTestPaths = [
"test/bench"
];
meta = with lib; {
changelog = "https://github.com/Nicoretti/crc/releases/tag/${version}";