My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyopnsense/default.nix

45 lines
770 B

{ lib
, buildPythonPackage
, fetchPypi
, fixtures
, mock
, pbr
, pytest-cov
, pytestCheckHook
, pythonOlder
, requests
, six
}:
buildPythonPackage rec {
pname = "pyopnsense";
version = "0.3.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "06rssdb3zhccnm63z96mw5yd38d9i99fgigfcdxn9divalbbhp5a";
};
propagatedBuildInputs = [
pbr
six
requests
];
checkInputs = [
fixtures
mock
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [ "pyopnsense" ];
meta = with lib; {
description = "Python client for the OPNsense API";
homepage = "https://github.com/mtreinish/pyopnsense";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}