1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, geopy
6, requests
7, urllib3
8}:
9
10buildPythonPackage rec {
11 pname = "aemet-opendata";
12 version = "0.2.1";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "Noltari";
18 repo = "AEMET-OpenData";
19 rev = version;
20 sha256 = "0jl1897m3qmr48n469mq7d66k1j0rn7hlbcahm0ylf5i3ma03aiw";
21 };
22
23 propagatedBuildInputs = [
24 geopy
25 requests
26 urllib3
27 ];
28
29 # no tests implemented
30 doCheck = false;
31
32 pythonImportsCheck = [ "aemet_opendata.interface" ];
33
34 meta = with lib; {
35 description = "Python client for AEMET OpenData Rest API";
36 homepage = "https://github.com/Noltari/AEMET-OpenData";
37 license = licenses.gpl2Only;
38 maintainers = with maintainers; [ dotlambda ];
39 };
40}