bcg: init at 1.17.0
This commit is contained in:
parent
b225ae4a61
commit
b2ed94276b
49
pkgs/development/python-modules/bcg/default.nix
Normal file
49
pkgs/development/python-modules/bcg/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, appdirs
|
||||||
|
, click
|
||||||
|
, click-log
|
||||||
|
, paho-mqtt
|
||||||
|
, pyaml
|
||||||
|
, pyserial
|
||||||
|
, schema
|
||||||
|
, simplejson
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "bcg";
|
||||||
|
version = "1.17.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "hardwario";
|
||||||
|
repo = "bch-gateway";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "2Yh5MeIv+BIxjoO9GOPqq7xTAFhyBvnxPy7DeO2FrkI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -ri 's/@@VERSION@@/${version}/g' \
|
||||||
|
bcg/__init__.py setup.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
appdirs
|
||||||
|
click
|
||||||
|
click-log
|
||||||
|
paho-mqtt
|
||||||
|
pyaml
|
||||||
|
pyserial
|
||||||
|
schema
|
||||||
|
simplejson
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "bcg" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/hardwario/bch-gateway";
|
||||||
|
description = "HARDWARIO Gateway (Python Application «bcg»)";
|
||||||
|
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 { };
|
||||||
|
|
||||||
|
bcg = callPackage ../development/python-modules/bcg { };
|
||||||
|
|
||||||
bch = callPackage ../development/python-modules/bch { };
|
bch = callPackage ../development/python-modules/bch { };
|
||||||
|
|
||||||
bcrypt = if stdenv.hostPlatform.system == "i686-linux" then
|
bcrypt = if stdenv.hostPlatform.system == "i686-linux" then
|
||||||
|
|
Loading…
Reference in a new issue