2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
31 lines
677 B
Nix
31 lines
677 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, async-timeout
|
|
, pytz
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyMetno";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = pname;
|
|
owner = "Danielhiversen";
|
|
rev = version;
|
|
sha256 = "1ihq1lzgzcxbg916izakx9jp0kp1vdrcdwcwwwsws838wc08ax6m";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|