2021-01-17 11:57:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-13 12:43:20 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2021-01-17 11:57:30 +00:00
|
|
|
, requests
|
2021-04-13 12:43:20 +01:00
|
|
|
, requests-mock
|
2021-01-17 11:57:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "swisshydrodata";
|
2021-04-13 12:40:54 +01:00
|
|
|
version = "0.1.0";
|
2021-01-17 11:57:30 +00:00
|
|
|
|
2021-04-13 12:43:20 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Bouni";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1rdgfc6zg5j3fvrpbqs9vc3n5m66r5yljawyl7nmrqd5lwq1lqak";
|
2021-01-17 11:57:30 +00:00
|
|
|
};
|
|
|
|
|
2021-04-13 12:43:20 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
2021-01-17 11:57:30 +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 ];
|
|
|
|
};
|
|
|
|
}
|