1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyserial,
6 pythonOlder,
7 setuptools-scm,
8}:
9
10buildPythonPackage rec {
11 pname = "pylitejet";
12 version = "0.6.3";
13 pyproject = true;
14
15 disabled = pythonOlder "3.10";
16
17 src = fetchFromGitHub {
18 owner = "joncar";
19 repo = "pylitejet";
20 tag = "v${version}";
21 hash = "sha256-LHNMKU7aMDtSi4K+pZqRF9vAL3EKOFRFFNXKsQJVP2Y=";
22 };
23
24 build-system = [ setuptools-scm ];
25
26 dependencies = [ pyserial ];
27
28 # Only custom tests which uses the CLi are available
29 doCheck = false;
30
31 pythonImportsCheck = [ "pylitejet" ];
32
33 meta = {
34 description = "Library for interfacing with the LiteJet lighting system";
35 homepage = "https://github.com/joncar/pylitejet";
36 changelog = "https://github.com/joncar/pylitejet/releases/tag/v${version}";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}