about summary refs log tree commit diff
path: root/pkgs/development/python-modules/riden/default.nix
blob: 30c89f4e68e4f038c96e637a824e5dca20e1f31a (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
{
  lib,
  buildPythonPackage,
  click,
  fetchFromGitHub,
  modbus-tk,
  poetry-core,
  pyserial,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "riden";
  version = "1.2.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "geeksville";
    repo = "riden";
    rev = "refs/tags/${version}";
    hash = "sha256-uR1CsVsGn/QC4krHaxl6GqRnTPbFdRaqyMEl2RVMHPU=";
  };

  build-system = [
    poetry-core
    setuptools
  ];

  dependencies = [
    click
    modbus-tk
    pyserial
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "riden" ];

  meta = with lib; {
    description = "Module for Riden RD power supplies";
    homepage = "https://github.com/geeksville/riden";
    changelog = "https://github.com/geeksville/Riden/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}