python310Packages.crossplane: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-09-23 08:45:40 +02:00 committed by GitHub
parent c0b004a2e3
commit b81573950e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,35 @@
{ lib, buildPythonPackage, pytestCheckHook, fetchFromGitHub }:
{ lib
, buildPythonPackage
, pytestCheckHook
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "crossplane";
version = "0.5.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nginxinc";
repo = "crossplane";
rev = "refs/tags/v${version}";
sha256 = "sha256-DfIF+JvjIREi7zd5ZQ7Co/CIKC5iUeOgR/VLDPmrtTQ=";
hash = "sha256-DfIF+JvjIREi7zd5ZQ7Co/CIKC5iUeOgR/VLDPmrtTQ=";
};
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "crossplane" ];
pythonImportsCheck = [
"crossplane"
];
meta = with lib; {
homepage = "https://github.com/nginxinc/crossplane";
description = "NGINX configuration file parser and builder";
homepage = "https://github.com/nginxinc/crossplane";
license = licenses.asl20;
maintainers = with maintainers; [ kaction ];
};