diff --git a/pkgs/development/python-modules/aemet-opendata/default.nix b/pkgs/development/python-modules/aemet-opendata/default.nix new file mode 100644 index 000000000000..9c344f720aec --- /dev/null +++ b/pkgs/development/python-modules/aemet-opendata/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, geopy +, requests +, urllib3 +}: + +buildPythonPackage rec { + pname = "aemet-opendata"; + version = "0.2.1"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "Noltari"; + repo = "AEMET-OpenData"; + rev = version; + sha256 = "0jl1897m3qmr48n469mq7d66k1j0rn7hlbcahm0ylf5i3ma03aiw"; + }; + + propagatedBuildInputs = [ + geopy + requests + urllib3 + ]; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "aemet_opendata.interface" ]; + + meta = with lib; { + description = "Python client for AEMET OpenData Rest API"; + homepage = "https://github.com/Noltari/AEMET-OpenData"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 20e9481450be..66340b5be985 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -207,6 +207,8 @@ in { advantage-air = callPackage ../development/python-modules/advantage-air { }; + aemet-opendata = callPackage ../development/python-modules/aemet-opendata { }; + aenum = callPackage ../development/python-modules/aenum { }; afdko = callPackage ../development/python-modules/afdko { };