Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 60 lines
Nix
at flake-libs
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, async-timeout, buildPythonPackage, click, click-log, fetchFromGitHub, pytest-asyncio, pytest-timeout, pytestCheckHook, pythonOlder, setuptools, voluptuous, zigpy,}:
buildPythonPackage rec { pname = "bellows"; version = "0.45.0"; pyproject = true;
src = fetchFromGitHub { owner = "zigpy"; repo = "bellows"; tag = version; hash = "sha256-wIi6LXfo1ykNT9DMmlRORspiWnBzJUAn6kA/t4rdTpY="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail '"setuptools-git-versioning<2"' "" \ --replace-fail 'dynamic = ["version"]' 'version = "${version}"' '';
build-system = [ setuptools ];
dependencies = [ click click-log voluptuous zigpy ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
nativeCheckInputs = [ pytestCheckHook pytest-asyncio pytest-timeout ];
pythonImportsCheck = [ "bellows" ];
meta = with lib; { description = "Python module to implement EZSP for EmberZNet devices"; homepage = "https://github.com/zigpy/bellows"; changelog = "https://github.com/zigpy/bellows/releases/tag/${src.tag}"; license = licenses.gpl3Plus; maintainers = with maintainers; [ mvnetbiz ]; mainProgram = "bellows"; };}