1{
2 lib,
3 buildPythonPackage,
4 crc16,
5 fetchFromGitHub,
6 setuptools,
7}:
8
9buildPythonPackage {
10 pname = "pyoppleio-legacy";
11 version = "1.0.8";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "tinysnake";
16 repo = "python-oppleio-legacy";
17 rev = "90c57f778554fcf3a00e42757d0e92caebcfd149";
18 hash = "sha256-ccvMn/jQSkW11uMwG3P+i53NiDj+MNZgJYEkouQ1tvU=";
19 };
20
21 build-system = [ setuptools ];
22
23 # Package has a runtime dependency on 'pycrc16' but we provide 'crc16'
24 # They provide the same crc16 module
25 pythonRemoveDeps = [ "pycrc16" ];
26
27 dependencies = [ crc16 ];
28
29 # Package has no tests
30 doCheck = false;
31
32 meta = {
33 description = "Python library for interfacing with Opple WiFi lights (legacy firmware support)";
34 homepage = "https://github.com/tinysnake/python-oppleio-legacy";
35 license = lib.licenses.mit;
36 maintainers = [ lib.maintainers.jamiemagee ];
37 };
38}