nixpkgs/pkgs/development/python-modules/pyanglianwater/default.nix
2026-07-01 00:50:49 +00:00

50 lines
983 B
Nix

{
aiohttp,
buildPythonPackage,
cryptography,
fetchFromGitHub,
lib,
pyjwt,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pyanglianwater";
version = "3.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "pantherale0";
repo = "pyanglianwater";
tag = version;
hash = "sha256-hXHkRiKnv59TW1Wr2aJcMvW65SQbkfSokGjh9AvmN3s=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
cryptography
pyjwt
];
pythonImportsCheck = [ "pyanglianwater" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
# tests are out of date
doCheck = false;
meta = {
changelog = "https://github.com/pantherale0/pyanglianwater/releases/tag/${src.tag}";
description = "Python API to interact with Anglian Water";
homepage = "https://github.com/pantherale0/pyanglianwater";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
}