Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, buildPythonPackage, fetchFromGitHub, setuptools, click, click-log, paho-mqtt, pyaml,}:
buildPythonPackage (finalAttrs: { pname = "bch"; version = "1.2.1"; pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub { owner = "hardwario"; repo = "bch-control-tool"; tag = "v${finalAttrs.version}"; hash = "sha256-/C+NbJ0RrWZ/scv/FiRBTh4h7u0xS4mHVDWQ0WwmlEY="; };
build-system = [ setuptools ];
dependencies = [ click click-log paho-mqtt pyaml ];
postPatch = '' substituteInPlace bch/cli.py setup.py \ --replace-fail "@@VERSION@@" "${finalAttrs.version}" '';
pythonImportsCheck = [ "bch" ];
meta = { homepage = "https://github.com/hardwario/bch-control-tool"; description = "HARDWARIO Hub Control Tool"; mainProgram = "bch"; platforms = lib.platforms.linux; license = lib.licenses.mit; maintainers = with lib.maintainers; [ cynerd ]; };})