2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-05-15 15:35:15 +00:00
|
|
|
, hatchling
|
2021-03-23 19:22:30 +00:00
|
|
|
, requests
|
|
|
|
, ciso8601
|
2022-10-06 18:32:54 +00:00
|
|
|
, pythonOlder
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dwdwfsapi";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.1.0";
|
|
|
|
pyproject = true;
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-7dIVD+4MiYtsjAM5j67MlbiUN2Q5DpK6bUU0ZuHN2rk=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-03-23 19:22:30 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|