a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
40 lines
791 B
Nix
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 ];
|
|
};
|
|
}
|