1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pyopenssl,
7 pythonOlder,
8 pythonRelaxDepsHook,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "netio";
14 version = "1.0.13";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "netioproducts";
21 repo = "PyNetio";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-s/X2WGhQXYsbo+ZPpkVSF/vclaThYYNHu0UY0yCnfPA=";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 pythonRelaxDepsHook
29 ];
30
31 pythonRelaxDeps = [ "pyopenssl" ];
32
33 propagatedBuildInputs = [
34 requests
35 pyopenssl
36 ];
37
38 pythonImportsCheck = [ "Netio" ];
39
40 # Module has no tests
41 doCheck = false;
42
43 meta = with lib; {
44 description = "Module for interacting with NETIO devices";
45 mainProgram = "Netio";
46 homepage = "https://github.com/netioproducts/PyNetio";
47 changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md";
48 license = licenses.mit;
49 maintainers = with maintainers; [ fab ];
50 };
51}