Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / automate-home / default.nix
blobc13395aa42e3e4dace42051c0a2ae96b794ed52a
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , pythonOlder
6 , apscheduler
7 , hiredis
8 , aioredis
9 , ephem
10 , pytz
11 , pyyaml
14 buildPythonPackage rec {
15   pname = "automate-home";
16   version = "0.9.1";
17   format = "setuptools";
19   disabled = pythonOlder "3.8";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-41qd+KPSrOrczkovwXht3irbcYlYehBZ1HZ44yZe4cM=";
24   };
26   propagatedBuildInputs = [
27     apscheduler
28     hiredis
29     aioredis
30     ephem
31     pytz
32     pyyaml
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37   ];
39   postPatch = ''
40     # Rename pyephem, https://github.com/majamassarini/automate-home/pull/3
41     substituteInPlace setup.py \
42       --replace "pyephem" "ephem" \
43       --replace "aioredis==1.3.1" "aioredis"
44   '';
46   pythonImportsCheck = [
47     "home"
48   ];
50   meta = with lib; {
51     description = "Python module to automate (home) devices";
52     homepage = "https://github.com/majamassarini/automate-home";
53     license = licenses.gpl3Only;
54     maintainers = with maintainers; [ fab ];
55   };