blob: 783fca6710005df44d4de37943332700fca134aa (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pyserial,
}:
buildPythonPackage rec {
pname = "modbus-tk";
version = "1.1.5";
pyproject = true;
src = fetchPypi {
pname = "modbus_tk";
inherit version;
hash = "sha256-d6cqOtnV0yodIRC8BCFmgMpX11IpEuDycem/XxtwGzY=";
};
build-system = [ setuptools ];
dependencies = [ pyserial ];
# Source no tagged anymore and PyPI doesn't ship tests
doCheck = false;
pythonImportsCheck = [ "modbus_tk" ];
meta = {
description = "Module for simple Modbus interactions";
homepage = "https://github.com/ljean/modbus-tk";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ fab ];
};
}
|