blob: d4b4a72148d9202ea6850e2c0146e6b591b30034 (
plain) (
blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
bluepy,
buildPythonPackage,
csrmesh,
fetchPypi,
pycryptodome,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "avion";
version = "0.10";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-v/0NwFmxDZ9kEOx5qs5L9sKzOg/kto79syctg0Ah+30=";
};
postPatch = ''
# https://github.com/mjg59/python-avion/pull/16
substituteInPlace setup.py \
--replace "bluepy>==1.1.4" "bluepy>=1.1.4"
'';
propagatedBuildInputs = [
bluepy
csrmesh
pycryptodome
requests
];
# Module has no test
doCheck = false;
# bluepy/uuids.json is not found
# pythonImportsCheck = [ "avion" ];
meta = with lib; {
description = "Python API for controlling Avi-on Bluetooth dimmers";
homepage = "https://github.com/mjg59/python-avion";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}
|