d2947cfef0
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
39 lines
761 B
Nix
39 lines
761 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, ciso8601
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dwdwfsapi";
|
|
version = "1.0.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-zeSV2acjtSWUYnrMjEBtrSPlXRvrNQRX5SYPYHnaOy0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
ciso8601
|
|
];
|
|
|
|
# All tests require network access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"dwdwfsapi"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python client to retrieve data provided by DWD via their geoserver WFS API";
|
|
homepage = "https://github.com/stephan192/dwdwfsapi";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
};
|
|
}
|