blob: 7fac991ad0829a91e310898624e970435fe4a4ca (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pycomm3";
version = "1.2.16";
pyproject = true;
src = fetchFromGitHub {
owner = "ottowayi";
repo = "pycomm3";
tag = "v${version}";
hash = "sha256-xcN0TKwWg23CDBmwMRZlPFuKYpeLg7KSXzhRtNuP6Ls=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pycomm3" ];
disabledTestPaths = [
# Don't test examples as some have additional requirements
"examples/"
# No physical PLC available
"tests/online/"
];
meta = {
description = "Python Ethernet/IP library for communicating with Allen-Bradley PLCs";
homepage = "https://github.com/ottowayi/pycomm3";
changelog = "https://github.com/ottowayi/pycomm3/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|