bch: init at 1.2.1
This commit is contained in:
parent
83352e935e
commit
b225ae4a61
42
pkgs/development/python-modules/bch/default.nix
Normal file
42
pkgs/development/python-modules/bch/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, click
|
||||||
|
, click-log
|
||||||
|
, paho-mqtt
|
||||||
|
, pyaml
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "bch";
|
||||||
|
version = "1.2.1";
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1269,6 +1269,8 @@ self: super: with self; {
|
||||||
|
|
||||||
bcdoc = callPackage ../development/python-modules/bcdoc { };
|
bcdoc = callPackage ../development/python-modules/bcdoc { };
|
||||||
|
|
||||||
|
bch = callPackage ../development/python-modules/bch { };
|
||||||
|
|
||||||
bcrypt = if stdenv.hostPlatform.system == "i686-linux" then
|
bcrypt = if stdenv.hostPlatform.system == "i686-linux" then
|
||||||
callPackage ../development/python-modules/bcrypt/3.nix { }
|
callPackage ../development/python-modules/bcrypt/3.nix { }
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue