python310Packages.crossplane: disable on older Python releases

authored by

Fabian Affolter and committed by
GitHub
b8157395 c0b004a2

+17 -5
+17 -5
pkgs/development/python-modules/crossplane/default.nix
··· 1 - { lib, buildPythonPackage, pytestCheckHook, fetchFromGitHub }: 2 3 buildPythonPackage rec { 4 pname = "crossplane"; 5 version = "0.5.8"; 6 7 src = fetchFromGitHub { 8 owner = "nginxinc"; 9 repo = "crossplane"; 10 rev = "refs/tags/v${version}"; 11 - sha256 = "sha256-DfIF+JvjIREi7zd5ZQ7Co/CIKC5iUeOgR/VLDPmrtTQ="; 12 }; 13 14 - checkInputs = [ pytestCheckHook ]; 15 16 - pythonImportsCheck = [ "crossplane" ]; 17 18 meta = with lib; { 19 - homepage = "https://github.com/nginxinc/crossplane"; 20 description = "NGINX configuration file parser and builder"; 21 license = licenses.asl20; 22 maintainers = with maintainers; [ kaction ]; 23 };
··· 1 + { lib 2 + , buildPythonPackage 3 + , pytestCheckHook 4 + , fetchFromGitHub 5 + , pythonOlder 6 + }: 7 8 buildPythonPackage rec { 9 pname = "crossplane"; 10 version = "0.5.8"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "nginxinc"; 17 repo = "crossplane"; 18 rev = "refs/tags/v${version}"; 19 + hash = "sha256-DfIF+JvjIREi7zd5ZQ7Co/CIKC5iUeOgR/VLDPmrtTQ="; 20 }; 21 22 + checkInputs = [ 23 + pytestCheckHook 24 + ]; 25 26 + pythonImportsCheck = [ 27 + "crossplane" 28 + ]; 29 30 meta = with lib; { 31 description = "NGINX configuration file parser and builder"; 32 + homepage = "https://github.com/nginxinc/crossplane"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ kaction ]; 35 };