Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyopnsense / default.nix
blob7fdd6170a3774de215788522ca9023bb418af7ff
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fixtures
5 , mock
6 , pbr
7 , pytestCheckHook
8 , pythonOlder
9 , requests
10 , testtools
13 buildPythonPackage rec {
14   pname = "pyopnsense";
15   version = "0.4.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-3DKlVrOtMa55gTu557pgojRpdgrO5pEZ3L+9gKoW9yg=";
23   };
25   propagatedBuildInputs = [
26     pbr
27     requests
28   ];
30   nativeCheckInputs = [
31     fixtures
32     mock
33     pytestCheckHook
34     testtools
35   ];
37   pythonImportsCheck = [
38     "pyopnsense"
39   ];
41   meta = with lib; {
42     description = "Python client for the OPNsense API";
43     homepage = "https://github.com/mtreinish/pyopnsense";
44     changelog = "https://github.com/mtreinish/pyopnsense/releases/tag/${version}";
45     license = with licenses; [ gpl3Plus ];
46     maintainers = with maintainers; [ fab ];
47   };