summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/ham/deps/dwdwfsapi.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-02-16 22:13:39 +0100
committermakefu <github@syntax-fehler.de>2021-02-16 22:13:39 +0100
commitcacc5ca5231c85856a0974d7d6fe9cc8f5444aba (patch)
tree046ba4e3eba783683f552a0c707b036abd2e94d6 /makefu/2configs/ham/deps/dwdwfsapi.nix
parentda0ab68232757e19e1ec26e88331b88afea9e8fc (diff)
ma ham: add deps
Diffstat (limited to 'makefu/2configs/ham/deps/dwdwfsapi.nix')
-rw-r--r--makefu/2configs/ham/deps/dwdwfsapi.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/makefu/2configs/ham/deps/dwdwfsapi.nix b/makefu/2configs/ham/deps/dwdwfsapi.nix
new file mode 100644
index 000000000..d59dfa9e8
--- /dev/null
+++ b/makefu/2configs/ham/deps/dwdwfsapi.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, requests
+, ciso8601
+, urllib3
+}:
+
+buildPythonPackage rec {
+ pname = "dwdwfsapi";
+ version = "1.0.3";
+
+ disabled = false; # requires python version >=3.6
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "3d7d5bd66b1a647f07295068dc653b4ceafc2e8ec834b8e32419031c7b3a9b39";
+ };
+
+ # # Package conditions to handle
+ # # might have to sed setup.py and egg.info in patchPhase
+ # # sed -i "s/<package>.../<package>/"
+ # requests>=2.23.0,<3
+ # ciso8601>=2.1.3,<3
+ # urllib3>=1.25.8,<2
+ propagatedBuildInputs = [
+ requests
+ ciso8601
+ urllib3
+ ];
+
+ meta = with lib; {
+ description = "Python client to retrieve data provided by DWD via their geoserver WFS API";
+ homepage = https://github.com/stephan192/dwdwfsapi;
+ license = licenses.mit;
+ # maintainers = [ maintainers. ];
+ };
+}