mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
57bf2557f7
Co-Authored-By: Jon <jonringer@users.noreply.github.com> Co-authored-by: Florian <flo@halbmastwurf.de> Co-authored-by: Jon <jonringer@users.noreply.github.com>
32 lines
677 B
Nix
32 lines
677 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, async-timeout
|
|
, pytz
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyMetno";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = pname;
|
|
owner = "Danielhiversen";
|
|
rev = version;
|
|
sha256 = "00v2r3nn48svni9rbmbf0a4ylgfcf93gk2wg7qnm1fv1qrkgscvg";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|