Skip to content

Commit

Permalink
Merge pull request NixOS#117121 from elohmeier/dwdwfsapi
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Mar 23, 2021
2 parents d8c989a + 62e8769 commit 5409b08
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
33 changes: 33 additions & 0 deletions pkgs/development/python-modules/dwdwfsapi/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 5409b08

Please sign in to comment.