1{ lib
2, aiohttp
3, aresponses
4, aiocache
5, buildPythonPackage
6, fetchFromGitHub
7, poetry-core
8, pytest-asyncio
9, pytest-aiohttp
10, pytestCheckHook
11, pythonOlder
12, msgpack
13, ujson
14}:
15
16buildPythonPackage rec {
17 pname = "pyflunearyou";
18 version = "2.0.1";
19 format = "pyproject";
20 disabled = pythonOlder "3.6";
21
22 src = fetchFromGitHub {
23 owner = "bachya";
24 repo = pname;
25 rev = version;
26 sha256 = "sha256-2a4OKPmy9tFLJqRg9bEXqrbr3RKVHmKPSYDrtAEqvdo=";
27 };
28
29 nativeBuildInputs = [ poetry-core ];
30
31 propagatedBuildInputs = [
32 aiohttp
33 aiocache
34 msgpack
35 ujson
36 ];
37
38 checkInputs = [
39 aresponses
40 pytest-asyncio
41 pytest-aiohttp
42 pytestCheckHook
43 ];
44
45 # Ignore the examples directory as the files are prefixed with test_.
46 # disabledTestFiles doesn't seem to work here
47 pytestFlagsArray = [ "--ignore examples/" ];
48 pythonImportsCheck = [ "pyflunearyou" ];
49
50 meta = with lib; {
51 description = "Python library for retrieving UV-related information from Flu Near You";
52 homepage = "https://github.com/bachya/pyflunearyou";
53 license = with licenses; [ mit ];
54 maintainers = with maintainers; [ fab ];
55 };
56}