forked from mirrors/nixpkgs
python3Packages.netio: init at 1.0.6
This commit is contained in:
parent
3e30bb4bd6
commit
99b3f1ec92
45
pkgs/development/python-modules/netio/default.nix
Normal file
45
pkgs/development/python-modules/netio/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue