summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pylitejet/default.nix
blob: aacb966f02446b9b2944e3f6907952b9f44d8a1d (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pyserial,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "pylitejet";
  version = "0.6.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "joncar";
    repo = "pylitejet";
    tag = "v${version}";
    hash = "sha256-LHNMKU7aMDtSi4K+pZqRF9vAL3EKOFRFFNXKsQJVP2Y=";
  };

  build-system = [ setuptools-scm ];

  dependencies = [ pyserial ];

  # Only custom tests which uses the CLi are available
  doCheck = false;

  pythonImportsCheck = [ "pylitejet" ];

  meta = {
    description = "Library for interfacing with the LiteJet lighting system";
    homepage = "https://github.com/joncar/pylitejet";
    changelog = "https://github.com/joncar/pylitejet/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}