1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, requests
6, pyopenssl
7}:
8
9buildPythonPackage rec {
10 pname = "netio";
11 version = "1.0.6";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 pname = "Netio";
18 inherit version;
19 hash = "sha256-G1NSCchoRjgX2K9URNXsxpp9jxrQo0RgZ00tzWdexGU=";
20 };
21
22 propagatedBuildInputs = [
23 requests
24 pyopenssl
25 ];
26
27 postPatch = ''
28 substituteInPlace setup.py \
29 --replace "import py2exe" ""
30 '';
31
32 pythonImportsCheck = [
33 "Netio"
34 ];
35
36 # Module has no tests
37 doCheck = false;
38
39 meta = with lib; {
40 description = "Module for interacting with NETIO devices";
41 homepage = "https://github.com/netioproducts/PyNetio";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}