2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, ciso8601
|
2022-10-06 18:32:54 +00:00
|
|
|
, pythonOlder
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dwdwfsapi";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.0.7";
|
2022-10-06 18:32:54 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-7le1F+581JwrBX/C1aaqsDaSpIt0yNsNKiGnJtHUg5s=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
ciso8601
|
|
|
|
];
|
|
|
|
|
|
|
|
# All tests require network access
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"dwdwfsapi"
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client to retrieve data provided by DWD via their geoserver WFS API";
|
|
|
|
homepage = "https://github.com/stephan192/dwdwfsapi";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/stephan192/dwdwfsapi/blob/v${version}/CHANGELOG.md";
|
2021-03-23 19:22:30 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|