1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 dacite,
8 orjson,
9 pytest-asyncio,
10 pytest-error-for-skips,
11 pytestCheckHook,
12 pythonOlder,
13}:
14
15buildPythonPackage rec {
16 pname = "zadnegoale";
17 version = "0.7.0";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "bieniu";
24 repo = "zadnegoale";
25 tag = version;
26 hash = "sha256-ij8xou8LXC4/BUTApIV6xSgb7ethwLyrHNJvBgxSBYM=";
27 };
28
29 propagatedBuildInputs = [
30 aiohttp
31 dacite
32 orjson
33 ];
34
35 nativeCheckInputs = [
36 aioresponses
37 pytest-asyncio
38 pytest-error-for-skips
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [ "zadnegoale" ];
43
44 meta = with lib; {
45 description = "Python wrapper for getting allergen concentration data from Żadnego Ale servers";
46 homepage = "https://github.com/bieniu/zadnegoale";
47 changelog = "https://github.com/bieniu/zadnegoale/releases/tag/${version}";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ fab ];
50 };
51}