1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, aiohttp
5, async-timeout
6, pytz
7, xmltodict
8}:
9
10buildPythonPackage rec {
11 pname = "pymetno";
12 version = "0.10.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "Danielhiversen";
17 repo = "PyMetno";
18 rev = "refs/tags/${version}";
19 sha256 = "sha256-Do9RQS4gE2BapQtKQsnMzJ8EJzzxkCBA5r3z1zHXIsA=";
20 };
21
22 propagatedBuildInputs = [
23 aiohttp
24 async-timeout
25 pytz
26 xmltodict
27 ];
28
29 pythonImportsCheck = [
30 "metno"
31 ];
32
33 # Project has no tests
34 doCheck = false;
35
36 meta = with lib; {
37 description = "A library to communicate with the met.no API";
38 homepage = "https://github.com/Danielhiversen/pyMetno/";
39 license = licenses.mit;
40 maintainers = with maintainers; [ flyfloh ];
41 };
42}