about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2021-03-23 16:02:37 +0100
committerGitHub <noreply@github.com>2021-03-23 16:02:37 +0100
commit5409b08d8a8f7617a7eec5900dbe7c6cf924cdac (patch)
treeade14dcbff13ccd7bac8c6dee700b190be6fe843 /pkgs/development
parentd8c989a482c8f33cfcae1ad7abd978bfa7a62807 (diff)
parent62e8769a3a5e6ec849995448a49907cb1bf75339 (diff)
Merge pull request #117121 from elohmeier/dwdwfsapi
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/dwdwfsapi/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dwdwfsapi/default.nix b/pkgs/development/python-modules/dwdwfsapi/default.nix
new file mode 100644
index 0000000000000..6699050035d08
--- /dev/null
+++ b/pkgs/development/python-modules/dwdwfsapi/default.nix
@@ -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 ];
+  };
+}