nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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}:
13
14buildPythonPackage rec {
15 pname = "zadnegoale";
16 version = "0.7.0";
17 format = "setuptools";
18
19 src = fetchFromGitHub {
20 owner = "bieniu";
21 repo = "zadnegoale";
22 tag = version;
23 hash = "sha256-ij8xou8LXC4/BUTApIV6xSgb7ethwLyrHNJvBgxSBYM=";
24 };
25
26 propagatedBuildInputs = [
27 aiohttp
28 dacite
29 orjson
30 ];
31
32 nativeCheckInputs = [
33 aioresponses
34 pytest-asyncio
35 pytest-error-for-skips
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "zadnegoale" ];
40
41 meta = {
42 description = "Python wrapper for getting allergen concentration data from Żadnego Ale servers";
43 homepage = "https://github.com/bieniu/zadnegoale";
44 changelog = "https://github.com/bieniu/zadnegoale/releases/tag/${version}";
45 license = lib.licenses.asl20;
46 maintainers = with lib.maintainers; [ fab ];
47 };
48}