summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyegps/default.nix
blob: 8146f8291542cee0475df97252c09ea6059b635a (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
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytestCheckHook,
  pyusb,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "pyegps";
  version = "0.2.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "gnumpi";
    repo = "pyegps";
    tag = "v${version}";
    hash = "sha256-iixk2sFa4KAayKFmQKtPjvoIYgxCMXnfkliKhyO2ba4=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [ pyusb ];

  pythonImportsCheck = [ "pyegps" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    changelog = "https://github.com/gnumpi/pyEGPS/releases/tag/v${version}";
    description = "Controlling Energenie Power Strips with python";
    homepage = "https://github.com/gnumpi/pyegps";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}