linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / development / python-modules / zigpy-deconz / default.nix
blobedbba6c73050cfee31831da6e1163b08827ed317
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pyserial,
6   pyserial-asyncio,
7   pytest-asyncio,
8   pytestCheckHook,
9   pythonOlder,
10   setuptools,
11   zigpy,
14 buildPythonPackage rec {
15   pname = "zigpy-deconz";
16   version = "0.24.1";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "zigpy";
23     repo = pname;
24     rev = "refs/tags/${version}";
25     hash = "sha256-CSXJcERqrPnCdlwyNSqSkxoiVhjNuL2GL4J6h2DMZY4=";
26   };
28   postPatch = ''
29     substituteInPlace pyproject.toml \
30       --replace-fail ', "setuptools-git-versioning<2"' "" \
31       --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
32   '';
34   nativeBuildInputs = [ setuptools ];
36   propagatedBuildInputs = [
37     pyserial
38     pyserial-asyncio
39     zigpy
40   ];
42   nativeCheckInputs = [
43     pytest-asyncio
44     pytestCheckHook
45   ];
47   pythonImportsCheck = [ "zigpy_deconz" ];
49   meta = with lib; {
50     description = "Library which communicates with Deconz radios for zigpy";
51     homepage = "https://github.com/zigpy/zigpy-deconz";
52     changelog = "https://github.com/zigpy/zigpy-deconz/releases/tag/${version}";
53     license = licenses.gpl3Plus;
54     maintainers = with maintainers; [ mvnetbiz ];
55     platforms = platforms.linux;
56   };