nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 incremental,
8 pytest-asyncio,
9 pytestCheckHook,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "aiolyric";
15 version = "2.0.2";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "timmo001";
20 repo = "aiolyric";
21 tag = version;
22 hash = "sha256-k0UE9SXHS8lPu3kC+tGtn99rCU2hq+fdCsp6f83+gv4=";
23 };
24
25 build-system = [
26 incremental
27 setuptools
28 ];
29
30 dependencies = [
31 aiohttp
32 incremental
33 ];
34
35 nativeCheckInputs = [
36 aioresponses
37 pytest-asyncio
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "aiolyric" ];
42
43 disabledTestPaths = [
44 # _version file is no shipped
45 "tests/test__version.py"
46 ];
47
48 meta = {
49 description = "Python module for the Honeywell Lyric Platform";
50 homepage = "https://github.com/timmo001/aiolyric";
51 changelog = "https://github.com/timmo001/aiolyric/releases/tag/${src.tag}";
52 license = lib.licenses.mit;
53 maintainers = with lib.maintainers; [ fab ];
54 };
55}