Merge pull request #117121 from elohmeier/dwdwfsapi

This commit is contained in:
Martin Weinelt 2021-03-23 16:02:37 +01:00 committed by GitHub
commit 5409b08d8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
, ciso8601
}:
buildPythonPackage rec {
pname = "dwdwfsapi";
version = "1.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-PX1b1msaZH8HKVBo3GU7TOr8Lo7INLjjJBkDHHs6mzk=";
};
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 ];
};
}

View file

@ -192,7 +192,7 @@
"dublin_bus_transport" = ps: with ps; [ ];
"duckdns" = ps: with ps; [ ];
"dunehd" = ps: with ps; [ ]; # missing inputs: pdunehd
"dwd_weather_warnings" = ps: with ps; [ ]; # missing inputs: dwdwfsapi
"dwd_weather_warnings" = ps: with ps; [ dwdwfsapi ];
"dweet" = ps: with ps; [ ]; # missing inputs: dweepy
"dynalite" = ps: with ps; [ ]; # missing inputs: dynalite_devices
"dyson" = ps: with ps; [ aiohttp-cors libpurecool zeroconf ];

View file

@ -2080,6 +2080,8 @@ in {
else
callPackage ../development/python-modules/dulwich/0_19.nix { };
dwdwfsapi = callPackage ../development/python-modules/dwdwfsapi { };
dyn = callPackage ../development/python-modules/dyn { };
dynd = callPackage ../development/python-modules/dynd { };