3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.netio: init at 1.0.6

This commit is contained in:
Fabian Affolter 2022-02-11 12:14:45 +01:00 committed by Jonathan Ringer
parent 3e30bb4bd6
commit 99b3f1ec92
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
, pyopenssl
}:
buildPythonPackage rec {
pname = "netio";
version = "1.0.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Netio";
inherit version;
hash = "sha256-G1NSCchoRjgX2K9URNXsxpp9jxrQo0RgZ00tzWdexGU=";
};
propagatedBuildInputs = [
requests
pyopenssl
];
postPatch = ''
substituteInPlace setup.py \
--replace "import py2exe" ""
'';
pythonImportsCheck = [
"Netio"
];
# Module has no tests
doCheck = false;
meta = with lib; {
description = "Module for interacting with NETIO devices";
homepage = "https://github.com/netioproducts/PyNetio";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -5390,6 +5390,8 @@ in {
netifaces = callPackage ../development/python-modules/netifaces { };
netio = callPackage ../development/python-modules/netio { };
nettigo-air-monitor = callPackage ../development/python-modules/nettigo-air-monitor { };
networkx = callPackage ../development/python-modules/networkx { };