1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pytest-cov-stub, 7 pythonOlder, 8 requests-mock, 9 requests, 10 aiohttp, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "swisshydrodata"; 16 version = "0.3.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.12"; 20 21 src = fetchFromGitHub { 22 owner = "Bouni"; 23 repo = "swisshydrodata"; 24 tag = version; 25 hash = "sha256-Yy/sc/SKKftIsZLyIJabrgcgYwbBxZMXbhTaWSIKpM8="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 requests 32 aiohttp 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 pytest-cov-stub 38 requests-mock 39 ]; 40 41 pythonImportsCheck = [ "swisshydrodata" ]; 42 43 meta = with lib; { 44 description = "Python client to get data from the Swiss federal Office for Environment FEON"; 45 homepage = "https://github.com/bouni/swisshydrodata"; 46 changelog = "https://github.com/Bouni/swisshydrodata/releases/tag/${src.tag}"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}