2020-03-18 21:29:36 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, pytz
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyMetno";
|
2020-06-21 13:57:57 +01:00
|
|
|
version = "0.5.1";
|
2020-03-18 21:29:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "Danielhiversen";
|
|
|
|
rev = version;
|
2020-06-21 13:57:57 +01:00
|
|
|
sha256 = "1ihq1lzgzcxbg916izakx9jp0kp1vdrcdwcwwwsws838wc08ax6m";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|