nixpkgs/pkgs/development/python-modules/pymetno/default.nix
2023-08-20 10:51:58 +00:00

43 lines
779 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, async-timeout
, pytz
, xmltodict
}:
buildPythonPackage rec {
pname = "pymetno";
version = "0.11.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "PyMetno";
rev = "refs/tags/${version}";
hash = "sha256-NikfHQwVviCKWGfY1atirFVaqWQHfXg8WAgZIDnGn4Q=";
};
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 ];
};
}