Files
nixpkgs/pkgs/development/python-modules/automate-home/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
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 = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
}