nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-asyncio, 6 pytestCheckHook, 7 setuptools, 8 voluptuous, 9 zigpy, 10}: 11 12buildPythonPackage rec { 13 pname = "zigpy-deconz"; 14 version = "0.25.5"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "zigpy"; 19 repo = "zigpy-deconz"; 20 tag = version; 21 hash = "sha256-kwQF6RY6Fxba44wa3q4Hx4MRAbWl3Ho7WYvR7jRfrW8="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace-fail ', "setuptools-git-versioning<2"' "" \ 27 --replace-fail 'dynamic = ["version"]' 'version = "${version}"' 28 ''; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 voluptuous 34 zigpy 35 ]; 36 37 nativeCheckInputs = [ 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "zigpy_deconz" ]; 43 44 meta = { 45 description = "Library which communicates with Deconz radios for zigpy"; 46 homepage = "https://github.com/zigpy/zigpy-deconz"; 47 changelog = "https://github.com/zigpy/zigpy-deconz/releases/tag/${src.tag}"; 48 license = lib.licenses.gpl3Plus; 49 maintainers = with lib.maintainers; [ mvnetbiz ]; 50 platforms = lib.platforms.linux; 51 }; 52}