2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-03-18 21:29:36 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, pytz
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-04-23 21:12:21 +00:00
|
|
|
pname = "pymetno";
|
|
|
|
version = "0.8.3";
|
2021-04-19 16:42:56 +00:00
|
|
|
format = "setuptools";
|
2020-03-18 21:29:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Danielhiversen";
|
2021-04-23 21:12:21 +00:00
|
|
|
repo = "PyMetno";
|
2020-03-18 21:29:36 +00:00
|
|
|
rev = version;
|
2021-04-23 21:12:21 +00:00
|
|
|
sha256 = "sha256-dvZz+wv9B07yKM4E4fQ9VQOgeil9KxZxcGk6D0kWY4g=";
|
2020-03-18 21:29:36 +00:00
|
|
|
};
|
|
|
|
|
2021-04-19 16:42:56 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
pytz
|
|
|
|
xmltodict
|
|
|
|
];
|
2020-03-18 21:29:36 +00:00
|
|
|
|
2021-04-19 16:42:56 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"metno"
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
2020-03-18 21:29:36 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-04-23 21:12:21 +00:00
|
|
|
description = "A library to communicate with the met.no API";
|
2020-03-18 21:29:36 +00:00
|
|
|
homepage = "https://github.com/Danielhiversen/pyMetno/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flyfloh ];
|
|
|
|
};
|
|
|
|
}
|