Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6, apscheduler 7, hiredis 8, aioredis 9, ephem 10, pytz 11, pyyaml 12}: 13 14buildPythonPackage rec { 15 pname = "automate-home"; 16 version = "0.9.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-41qd+KPSrOrczkovwXht3irbcYlYehBZ1HZ44yZe4cM="; 24 }; 25 26 propagatedBuildInputs = [ 27 apscheduler 28 hiredis 29 aioredis 30 ephem 31 pytz 32 pyyaml 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 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 ''; 45 46 pythonImportsCheck = [ 47 "home" 48 ]; 49 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 }; 56}