nixpkgs/pkgs/development/python-modules/crossplane/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

37 lines
719 B
Nix

{ 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}";
hash = "sha256-DfIF+JvjIREi7zd5ZQ7Co/CIKC5iUeOgR/VLDPmrtTQ=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"crossplane"
];
meta = with lib; {
description = "NGINX configuration file parser and builder";
homepage = "https://github.com/nginxinc/crossplane";
license = licenses.asl20;
maintainers = with maintainers; [ kaction ];
};
}