nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pydantic,
7 pytest-aiohttp,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage (finalAttrs: {
14 pname = "zwave-js-server-python";
15 version = "0.68.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.12";
19
20 src = fetchFromGitHub {
21 owner = "home-assistant-libs";
22 repo = "zwave-js-server-python";
23 tag = finalAttrs.version;
24 hash = "sha256-NfK+/nuQjlAgg4ZCifo/KoPrgc5FHhEmdK8utnm1iDI=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 aiohttp
31 pydantic
32 ];
33
34 nativeCheckInputs = [
35 pytest-aiohttp
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "zwave_js_server" ];
40
41 meta = {
42 description = "Python wrapper for zwave-js-server";
43 homepage = "https://github.com/home-assistant-libs/zwave-js-server-python";
44 changelog = "https://github.com/home-assistant-libs/zwave-js-server-python/releases/tag/${finalAttrs.src.tag}";
45 license = lib.licenses.asl20;
46 maintainers = with lib.maintainers; [ fab ];
47 mainProgram = "zwave-js-server-python";
48 };
49})