ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
42 lines
765 B
Nix
42 lines
765 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, async-timeout
|
|
, pytz
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymetno";
|
|
version = "0.9.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Danielhiversen";
|
|
repo = "PyMetno";
|
|
rev = version;
|
|
sha256 = "sha256-2LNDFQObGqxrzswnqbmvCGLxEI0j+cIdv8o+RZM/7sM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
pytz
|
|
xmltodict
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"metno"
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "A library to communicate with the met.no API";
|
|
homepage = "https://github.com/Danielhiversen/pyMetno/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ flyfloh ];
|
|
};
|
|
}
|