2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2024-10-11 05:15:48 +00:00
|
|
|
pythonOlder,
|
2024-06-05 15:53:02 +00:00
|
|
|
requests-mock,
|
2024-10-11 05:15:48 +00:00
|
|
|
requests,
|
|
|
|
setuptools,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "swisshydrodata";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "0.2.1";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.12";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-04-13 19:44:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Bouni";
|
2024-10-11 05:15:48 +00:00
|
|
|
repo = "swisshydrodata";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-RcVwo61HZ02JEOHsSY/W8j2OTBN25oR2JunLZ5i6yVI=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ requests ];
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-13 19:44:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
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";
|
2024-10-11 05:15:48 +00:00
|
|
|
changelog = "https://github.com/Bouni/swisshydrodata/releases/tag/${version}";
|
|
|
|
license = licenses.mit;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|