depot/third_party/nixpkgs/pkgs/development/python-modules/pymetno/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
896 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
aiohttp,
async-timeout,
xmltodict,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pymetno";
version = "0.12.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "PyMetno";
rev = "refs/tags/${version}";
hash = "sha256-wRSUIaonjjucLM+A4GsF9Lrq2vZYCquEvblbmjKYpQE=";
};
propagatedBuildInputs = [
aiohttp
async-timeout
xmltodict
];
pythonImportsCheck = [ "metno" ];
# Project has no tests
doCheck = false;
meta = with lib; {
description = "Library to communicate with the met.no API";
homepage = "https://github.com/Danielhiversen/pyMetno/";
changelog = "https://github.com/Danielhiversen/pyMetno/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ flyfloh ];
};
}