bcf: init at 1.9.0

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

View file

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, appdirs
, click
, colorama
, intelhex
, packaging
, pyaml
, pyftdi
, pyserial
, requests
, schema
}:
buildPythonPackage rec {
pname = "bcf";
version = "1.9.0";
src = fetchFromGitHub {
owner = "hardwario";
repo = "bch-firmware-tool";
rev = "v${version}";
sha256 = "i28VewTB2XEZSfk0UeCuwB7Z2wz4qPBhzvxJIYkKwJ4=";
};
postPatch = ''
sed -ri 's/@@VERSION@@/${version}/g' \
bcf/__init__.py setup.py
'';
propagatedBuildInputs = [
appdirs
click
colorama
intelhex
packaging
pyaml
pyftdi
pyserial
requests
schema
];
pythonImportsCheck = [ "bcf" ];
doCheck = false; # Project provides no tests
meta = with lib; {
homepage = "https://github.com/hardwario/bch-firmware-tool";
description = "HARDWARIO Firmware Tool";
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 { };
bcf = callPackage ../development/python-modules/bcf { };
bcg = callPackage ../development/python-modules/bcg { };
bch = callPackage ../development/python-modules/bch { };