depot/third_party/nixpkgs/pkgs/development/python-modules/pyopnsense/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

47 lines
847 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, fixtures
, mock
, pbr
, pytestCheckHook
, pythonOlder
, requests
, testtools
}:
buildPythonPackage rec {
pname = "pyopnsense";
version = "0.4.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-3DKlVrOtMa55gTu557pgojRpdgrO5pEZ3L+9gKoW9yg=";
};
propagatedBuildInputs = [
pbr
requests
];
nativeCheckInputs = [
fixtures
mock
pytestCheckHook
testtools
];
pythonImportsCheck = [
"pyopnsense"
];
meta = with lib; {
description = "Python client for the OPNsense API";
homepage = "https://github.com/mtreinish/pyopnsense";
changelog = "https://github.com/mtreinish/pyopnsense/releases/tag/${version}";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}