mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
56 lines
993 B
Nix
56 lines
993 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, appdirs
|
|
, click
|
|
, colorama
|
|
, intelhex
|
|
, packaging
|
|
, pyaml
|
|
, pyftdi
|
|
, pyserial
|
|
, requests
|
|
, schema
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "bcf";
|
|
version = "1.9.0";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|