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

51 lines
974 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
httpx,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
respx,
}:
buildPythonPackage rec {
pname = "iaqualink";
version = "0.6.0";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "flz";
repo = "iaqualink-py";
tag = "v${version}";
hash = "sha256-s/ZhcbTaCvn7ei1O4+P4fKPojitl+4gsatc9PZx+W2g=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [ httpx ] ++ httpx.optional-dependencies.http2;
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
respx
];
pythonImportsCheck = [ "iaqualink" ];
meta = {
description = "Python library for Jandy iAqualink";
homepage = "https://github.com/flz/iaqualink-py";
changelog = "https://github.com/flz/iaqualink-py/releases/tag/v${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}