summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pysmarty2/default.nix
blob: 765dcd9ee2aa20c28d8060780b61d8b5eab21c3e (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pymodbus,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pysmarty2";
  version = "0.10.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "martinssipenko";
    repo = "pysmarty2";
    tag = "v${version}";
    hash = "sha256-an66TysXGPfKq9bPozwLM3M9E2sq3CC1if/uc47Ns5w=";
  };

  build-system = [ setuptools ];

  dependencies = [ pymodbus ];

  # Package has no tests
  doCheck = false;

  pythonImportsCheck = [ "pysmarty2" ];

  meta = {
    description = "Python API for Salda Smarty Modbus TCP";
    homepage = "https://github.com/martinssipenko/pysmarty2";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}