9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
47 lines
849 B
Nix
47 lines
849 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fixtures
|
|
, mock
|
|
, pbr
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
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
|
|
pytest-cov
|
|
pytestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|