Files
nixpkgs/pkgs/development/python-modules/swisshydrodata/default.nix
2025-08-18 16:11:32 +02:00

53 lines
1.0 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
requests-mock,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "swisshydrodata";
version = "0.3.1";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "Bouni";
repo = "swisshydrodata";
tag = version;
hash = "sha256-Yy/sc/SKKftIsZLyIJabrgcgYwbBxZMXbhTaWSIKpM8=";
};
build-system = [ setuptools ];
dependencies = [
requests
aiohttp
];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "swisshydrodata" ];
meta = with lib; {
description = "Python client to get data from the Swiss federal Office for Environment FEON";
homepage = "https://github.com/bouni/swisshydrodata";
changelog = "https://github.com/Bouni/swisshydrodata/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}