depot/third_party/nixpkgs/pkgs/development/python-modules/aemet-opendata/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

40 lines
791 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, geopy
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "aemet-opendata";
version = "0.2.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Noltari";
repo = "AEMET-OpenData";
rev = "refs/tags/${version}";
sha256 = "sha256-3f3hvui00oItu6t9rKecoCquqsD1Eeqz+SEsLBqGt48=";
};
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 ];
};
}