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 {
|
|
|
|
pname = "PyMetno";
|
2020-10-10 13:48:37 +01:00
|
|
|
version = "0.8.1";
|
2020-03-18 21:29:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "Danielhiversen";
|
|
|
|
rev = version;
|
2020-10-10 13:48:37 +01:00
|
|
|
sha256 = "1jngf0mbn5hn166pqh1ga5snwwvv7n5kv1k9kaksrfibixkvpw6h";
|
2020-03-18 21:29:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiohttp async-timeout pytz xmltodict ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "metno"];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-18 21:29:36 +00:00
|
|
|
description = "A library to communicate with the met.no api";
|
|
|
|
homepage = "https://github.com/Danielhiversen/pyMetno/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flyfloh ];
|
|
|
|
};
|
|
|
|
}
|