about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/crossplane/default.nix
blob: 20b4d4204f4ca7302f6a5fb21e54a59a71a6c3c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ 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 ];
  };
}