bcf: init at 1.9.0
This commit is contained in:
parent
b2ed94276b
commit
c92947c266
54
pkgs/development/python-modules/bcf/default.nix
Normal file
54
pkgs/development/python-modules/bcf/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1269,6 +1269,8 @@ self: super: with self; {
|
||||||
|
|
||||||
bcdoc = callPackage ../development/python-modules/bcdoc { };
|
bcdoc = callPackage ../development/python-modules/bcdoc { };
|
||||||
|
|
||||||
|
bcf = callPackage ../development/python-modules/bcf { };
|
||||||
|
|
||||||
bcg = callPackage ../development/python-modules/bcg { };
|
bcg = callPackage ../development/python-modules/bcg { };
|
||||||
|
|
||||||
bch = callPackage ../development/python-modules/bch { };
|
bch = callPackage ../development/python-modules/bch { };
|
||||||
|
|
Loading…
Reference in a new issue