depot/third_party/nixpkgs/pkgs/development/python-modules/pymetno/default.nix
Default email a97b1c8da0 Project import generated by Copybara.
GitOrigin-RevId: d235056d6d6dcbd2999bd55fd120d831d4df6304
2021-04-22 04:08:21 +02:00

42 lines
750 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, async-timeout
, pytz
, xmltodict
}:
buildPythonPackage rec {
pname = "PyMetno";
version = "0.8.2";
format = "setuptools";
src = fetchFromGitHub {
repo = pname;
owner = "Danielhiversen";
rev = version;
sha256 = "0b1zm60yqj1mivc3zqw2qm9rqh8cbmx0r58jyyvm3pxzq5cafdg5";
};
propagatedBuildInputs = [
aiohttp
async-timeout
pytz
xmltodict
];
pythonImportsCheck = [
"metno"
];
# 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 ];
};
}