2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-13 19:44:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2021-02-05 17:12:51 +00:00
|
|
|
, requests
|
2021-04-13 19:44:15 +00:00
|
|
|
, requests-mock
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "swisshydrodata";
|
2021-04-13 19:44:15 +00:00
|
|
|
version = "0.1.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-04-13 19:44:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Bouni";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1rdgfc6zg5j3fvrpbqs9vc3n5m66r5yljawyl7nmrqd5lwq1lqak";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-04-13 19:44:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|