bcg: init at 1.17.0

This commit is contained in:
Karel Kočí 2023-03-28 17:47:16 +02:00
parent b225ae4a61
commit b2ed94276b
No known key found for this signature in database
GPG key ID: D83BD732AC2BD828
2 changed files with 51 additions and 0 deletions

View 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 ];
};
}

View file

@ -1269,6 +1269,8 @@ self: super: with self; {
bcdoc = callPackage ../development/python-modules/bcdoc { };
bcg = callPackage ../development/python-modules/bcg { };
bch = callPackage ../development/python-modules/bch { };
bcrypt = if stdenv.hostPlatform.system == "i686-linux" then