1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 bluepy,
7 pycryptodome,
8}:
9
10buildPythonPackage rec {
11 pname = "tikteck";
12 version = "0.4";
13 pyproject = true;
14
15 # github doesn't have any tags unfortunately
16 src = fetchPypi {
17 pname = "tikteck";
18 inherit version;
19 hash = "sha256-KEbGT2RXLFMQ49gltOYcbE+ebJ1kiXzhT0DIeVXsSJM=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 bluepy
26 pycryptodome
27 ];
28
29 pythonImportsCheck = [ "tikteck" ];
30
31 # no upstream tests exist
32 doCheck = false;
33
34 meta = {
35 description = "Control Tikteck Bluetooth LED bulbs";
36 homepage = "https://github.com/mjg59/python-tikteck";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ ethancedwards8 ];
39 };
40}