Files
nixpkgs/pkgs/development/python-modules/automate-home/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.2 KiB
Nix

{
lib,
aioredis,
apscheduler,
buildPythonPackage,
ephem,
fetchPypi,
hiredis,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
pytz,
pyyaml,
setuptools,
}:
buildPythonPackage rec {
pname = "automate-home";
version = "0.9.1";
pyproject = true;
# Typing issue
disabled = pythonOlder "3.8" || pythonAtLeast "3.12";
src = fetchPypi {
inherit pname version;
hash = "sha256-41qd+KPSrOrczkovwXht3irbcYlYehBZ1HZ44yZe4cM=";
};
postPatch = ''
# Rename pyephem, https://github.com/majamassarini/automate-home/pull/3
substituteInPlace setup.py \
--replace-fail "pyephem" "ephem" \
--replace-fail "aioredis==1.3.1" "aioredis"
'';
build-system = [ setuptools ];
dependencies = [
apscheduler
hiredis
aioredis
ephem
pytz
pyyaml
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "home" ];
meta = with lib; {
description = "Python module to automate (home) devices";
homepage = "https://github.com/majamassarini/automate-home";
changelog = "https://github.com/majamassarini/automate-home/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}