1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, requests 6, requests-mock 7}: 8 9buildPythonPackage rec { 10 pname = "swisshydrodata"; 11 version = "0.1.0"; 12 13 src = fetchFromGitHub { 14 owner = "Bouni"; 15 repo = pname; 16 rev = version; 17 sha256 = "1rdgfc6zg5j3fvrpbqs9vc3n5m66r5yljawyl7nmrqd5lwq1lqak"; 18 }; 19 20 propagatedBuildInputs = [ 21 requests 22 ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 requests-mock 27 ]; 28 29 pythonImportsCheck = [ "swisshydrodata" ]; 30 31 meta = with lib; { 32 description = "Python client to get data from the Swiss federal Office for Environment FEON"; 33 homepage = "https://github.com/bouni/swisshydrodata"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}