python3packages.meteoalertapi: init at 0.1.8
This commit is contained in:
parent
8cb2d7a095
commit
199a1453ed
37
pkgs/development/python-modules/meteoalertapi/default.nix
Normal file
37
pkgs/development/python-modules/meteoalertapi/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, requests
|
||||
, xmltodict
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "meteoalertapi";
|
||||
version = "0.1.8";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rolfberkenbosch";
|
||||
repo = "meteoalert-api";
|
||||
rev = "v${version}";
|
||||
sha256 = "1l66vsd77g5hqkp2c3qrrxz4mr7liwq96apg8km80qyqsjmma9yy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
xmltodict
|
||||
];
|
||||
|
||||
# Tests require network access
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "meteoalertapi" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python wrapper for MeteoAlarm.org";
|
||||
homepage = "https://github.com/rolfberkenbosch/meteoalert-api";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -4301,6 +4301,8 @@ in {
|
|||
|
||||
metar = callPackage ../development/python-modules/metar { };
|
||||
|
||||
meteoalertapi = callPackage ../development/python-modules/meteoalertapi { };
|
||||
|
||||
mezzanine = callPackage ../development/python-modules/mezzanine { };
|
||||
|
||||
micawber = callPackage ../development/python-modules/micawber { };
|
||||
|
|
Loading…
Reference in a new issue