1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pymodbus,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "pysmarty2";
11 version = "0.10.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "martinssipenko";
16 repo = "pysmarty2";
17 tag = "v${version}";
18 hash = "sha256-an66TysXGPfKq9bPozwLM3M9E2sq3CC1if/uc47Ns5w=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ pymodbus ];
24
25 # Package has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "pysmarty2" ];
29
30 meta = {
31 description = "Python API for Salda Smarty Modbus TCP";
32 homepage = "https://github.com/martinssipenko/pysmarty2";
33 license = lib.licenses.mit;
34 maintainers = [ lib.maintainers.jamiemagee ];
35 };
36}