1{ lib
2, buildPythonPackage
3, fetchPypi
4, requests
5, ciso8601
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "dwdwfsapi";
11 version = "1.0.7";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-7le1F+581JwrBX/C1aaqsDaSpIt0yNsNKiGnJtHUg5s=";
19 };
20
21 propagatedBuildInputs = [
22 requests
23 ciso8601
24 ];
25
26 # All tests require network access
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "dwdwfsapi"
31 ];
32
33 meta = with lib; {
34 description = "Python client to retrieve data provided by DWD via their geoserver WFS API";
35 homepage = "https://github.com/stephan192/dwdwfsapi";
36 changelog = "https://github.com/stephan192/dwdwfsapi/blob/v${version}/CHANGELOG.md";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ elohmeier ];
39 };
40}