nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 click-log, 6 fetchFromGitHub, 7 pytest-asyncio, 8 pytest-timeout, 9 pytestCheckHook, 10 pythonOlder, 11 setuptools, 12 voluptuous, 13 zigpy, 14}: 15 16buildPythonPackage rec { 17 pname = "bellows"; 18 version = "0.49.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "zigpy"; 23 repo = "bellows"; 24 tag = version; 25 hash = "sha256-haWej3ZcUPd9Rpqf2PH8r0useylnLDaPiSctrwLz71Q="; 26 }; 27 28 postPatch = '' 29 substituteInPlace pyproject.toml \ 30 --replace-fail '"setuptools-git-versioning<2"' "" \ 31 --replace-fail 'dynamic = ["version"]' 'version = "${version}"' 32 ''; 33 34 build-system = [ setuptools ]; 35 36 dependencies = [ 37 click 38 click-log 39 voluptuous 40 zigpy 41 ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 pytest-asyncio 46 pytest-timeout 47 ]; 48 49 pythonImportsCheck = [ "bellows" ]; 50 51 meta = { 52 description = "Python module to implement EZSP for EmberZNet devices"; 53 homepage = "https://github.com/zigpy/bellows"; 54 changelog = "https://github.com/zigpy/bellows/releases/tag/${src.tag}"; 55 license = lib.licenses.gpl3Plus; 56 maintainers = with lib.maintainers; [ mvnetbiz ]; 57 mainProgram = "bellows"; 58 }; 59}