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