Files
nixpkgs/pkgs/development/python-modules/amberelectric/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

52 lines
932 B
Nix

{
lib,
aenum,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pydantic,
pytest-mock,
pytestCheckHook,
python-dateutil,
pythonOlder,
urllib3,
}:
buildPythonPackage rec {
pname = "amberelectric";
version = "2.0.12";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "madpilot";
repo = "amberelectric.py";
tag = "v${version}";
hash = "sha256-HTelfgOucyQINz34hT3kGxhJf68pxKbiO3L54nt5New=";
};
build-system = [ poetry-core ];
dependencies = [
aenum
urllib3
pydantic
python-dateutil
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "amberelectric" ];
meta = {
description = "Python Amber Electric API interface";
homepage = "https://github.com/madpilot/amberelectric.py";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}