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