forked from mirrors/nixpkgs
Merge pull request #126796 from dotlambda/aemet-opendata-init
python3Packages.aemet-opendata: init at 0.2.1
This commit is contained in:
commit
6831fd3fc5
40
pkgs/development/python-modules/aemet-opendata/default.nix
Normal file
40
pkgs/development/python-modules/aemet-opendata/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -12,7 +12,7 @@
|
|||
"adguard" = ps: with ps; [ adguardhome ];
|
||||
"ads" = ps: with ps; [ pyads ];
|
||||
"advantage_air" = ps: with ps; [ advantage-air ];
|
||||
"aemet" = ps: with ps; [ ]; # missing inputs: AEMET-OpenData
|
||||
"aemet" = ps: with ps; [ aemet-opendata ];
|
||||
"aftership" = ps: with ps; [ pyaftership ];
|
||||
"agent_dvr" = ps: with ps; [ agent-py ];
|
||||
"air_quality" = ps: with ps; [ ];
|
||||
|
|
|
@ -274,6 +274,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"acmeda"
|
||||
"adguard"
|
||||
"advantage_air"
|
||||
"aemet"
|
||||
"agent_dvr"
|
||||
"air_quality"
|
||||
"airly"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue