Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / openerz-api / default.nix
blob698816a62620ba287841cc36d73dca64ee66e0c4
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , requests
7 , setuptools
8 , testfixtures
9 }:
11 buildPythonPackage rec {
12   pname = "openerz-api";
13   version = "0.3.0";
14   pyproject = true;
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "misialq";
20     repo = "openerz-api";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-CwK61StspZJt0TALv76zfibUzlriwp9HRoYOtX9bU+c=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     requests
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35     testfixtures
36   ];
38   pythonImportsCheck = [
39     "openerz_api"
40   ];
42   meta = with lib; {
43     description = "Python module to interact with the OpenERZ API";
44     homepage = "https://github.com/misialq/openerz-api";
45     changelog = "https://github.com/misialq/openerz-api/releases/tag/v${version}";
46     license = with licenses; [ mit ];
47     maintainers = with maintainers; [ fab ];
48   };