nixpkgs/pkgs/development/python-modules/bcf/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
appdirs,
click,
colorama,
intelhex,
packaging,
pyaml,
pyftdi,
pyserial,
requests,
schema,
}:
buildPythonPackage rec {
pname = "bcf";
version = "1.9.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "hardwario";
repo = "bch-firmware-tool";
rev = "v${version}";
sha256 = "sha256-xKggVEN3O0umDEt358xc+79/SEVm2peMjfFHGTppTEo=";
};
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 = {
homepage = "https://github.com/hardwario/bch-firmware-tool";
description = "HARDWARIO Firmware Tool";
mainProgram = "bcf";
platforms = lib.platforms.linux;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cynerd ];
};
}