1{
2 lib,
3 buildPythonPackage,
4 crc16,
5 fetchPypi,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyoppleio";
12 version = "1.0.7";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-S1w3pPqhX903kkXUq9ALz0+zRvNGOimLughRRVKjV8E=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ crc16 ];
25
26 # Module has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [ "pyoppleio" ];
30
31 meta = with lib; {
32 description = "Library for interacting with OPPLE lights";
33 homepage = "https://github.com/jedmeng/python-oppleio";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ fab ];
36 mainProgram = "oppleio";
37 };
38}