pythonPackages.easysnmp: init at 0.2.5
This commit is contained in:
parent
1f11ee1a28
commit
8abfbb93dd
56
pkgs/development/python-modules/easysnmp/default.nix
Normal file
56
pkgs/development/python-modules/easysnmp/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, pythonAtLeast
|
||||
, fetchFromGitHub
|
||||
, net_snmp
|
||||
, openssl
|
||||
, pytest
|
||||
, pytestcov
|
||||
, pytest-flake8
|
||||
, pytest-sugar
|
||||
, termcolor
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "easysnmp";
|
||||
version = "0.2.5";
|
||||
|
||||
# See https://github.com/kamakazikamikaze/easysnmp/issues/108
|
||||
disabled = pythonAtLeast "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kamakazikamikaze";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1si9iyxqj6z22jzn6m93lwpinsqn20lix2py3jm3g3fmwawkd735";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestcov
|
||||
pytest-flake8
|
||||
pytest-sugar
|
||||
termcolor
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
net_snmp
|
||||
openssl
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
python setup.py build bdist_wheel --basedir=${net_snmp}/bin
|
||||
'';
|
||||
|
||||
# Unable to get tests to pass, even running by hand. The pytest tests have
|
||||
# become stale.
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A blazingly fast and Pythonic SNMP library based on the official Net-SNMP bindings";
|
||||
homepage = https://easysnmp.readthedocs.io/en/latest/;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ WhittlesJr ];
|
||||
};
|
||||
}
|
@ -1701,6 +1701,11 @@ in {
|
||||
|
||||
dugong = callPackage ../development/python-modules/dugong {};
|
||||
|
||||
easysnmp = callPackage ../development/python-modules/easysnmp {
|
||||
openssl = pkgs.openssl;
|
||||
net_snmp = pkgs.net_snmp;
|
||||
};
|
||||
|
||||
iowait = callPackage ../development/python-modules/iowait {};
|
||||
|
||||
responses = callPackage ../development/python-modules/responses {};
|
||||
|
Loading…
Reference in New Issue
Block a user