blob: 04cef8823c707ae6b17b9ef1822d3eda7080c824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|