depot/third_party/nixpkgs/pkgs/development/python-modules/bch/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

43 lines
811 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, click-log
, paho-mqtt
, pyaml
}:
buildPythonPackage rec {
pname = "bch";
version = "1.2.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "hardwario";
repo = "bch-control-tool";
rev = "v${version}";
sha256 = "/C+NbJ0RrWZ/scv/FiRBTh4h7u0xS4mHVDWQ0WwmlEY=";
};
propagatedBuildInputs = [
click
click-log
paho-mqtt
pyaml
];
postPatch = ''
sed -ri 's/@@VERSION@@/${version}/g' \
bch/cli.py setup.py
'';
pythonImportsCheck = [ "bch" ];
meta = with lib; {
homepage = "https://github.com/hardwario/bch-control-tool";
description = "HARDWARIO Hub Control Tool";
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [ cynerd ];
};
}