2020-03-18 21:29:36 +00:00
|
|
|
{ stdenv
|
|
|
|
, 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"];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library to communicate with the met.no api";
|
|
|
|
homepage = "https://github.com/Danielhiversen/pyMetno/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flyfloh ];
|
|
|
|
};
|
|
|
|
}
|