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