blob: bd2816f6d3454d6900cf09558dbadda7178470c9 (
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
50
51
52
53
54
55
56
|
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, APScheduler
, hiredis
, aioredis
, ephem
, pytz
, pyyaml
}:
buildPythonPackage rec {
pname = "automate-home";
version = "0.9.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-41qd+KPSrOrczkovwXht3irbcYlYehBZ1HZ44yZe4cM=";
};
propagatedBuildInputs = [
APScheduler
hiredis
aioredis
ephem
pytz
pyyaml
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
# Rename pyephem, https://github.com/majamassarini/automate-home/pull/3
substituteInPlace setup.py \
--replace "pyephem" "ephem" \
--replace "aioredis==1.3.1" "aioredis"
'';
pythonImportsCheck = [
"home"
];
meta = with lib; {
description = "Python module to automate (home) devices";
homepage = "https://github.com/majamassarini/automate-home";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}
|