7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
buildPythonPackage,
|
|
cmsis-svd,
|
|
fetchFromGitHub,
|
|
future,
|
|
ipython,
|
|
lib,
|
|
prompt-toolkit,
|
|
pyfwup,
|
|
pygreat,
|
|
pythonOlder,
|
|
pyusb,
|
|
setuptools,
|
|
tabulate,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "greatfet";
|
|
version = "2024.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greatscottgadgets";
|
|
repo = "greatfet";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-1GfyhxwA6Nhf/umvllR/hkh5hyn42141QOT7+6IGAis=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/host";
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail ', "setuptools-git-versioning<2"' "" \
|
|
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
cmsis-svd
|
|
future
|
|
ipython
|
|
prompt-toolkit
|
|
pyfwup
|
|
pygreat
|
|
pyusb
|
|
tabulate
|
|
tqdm
|
|
];
|
|
|
|
# Tests seem to require devices (or simulators) which are
|
|
# not available in the build sandbox.
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Hardware hacking with the greatfet";
|
|
homepage = "https://greatscottgadgets.com/greatfet";
|
|
license = lib.licenses.bsd3;
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "gf";
|
|
maintainers = with lib.maintainers; [
|
|
mog
|
|
msanft
|
|
];
|
|
};
|
|
}
|