Files
nixpkgs/pkgs/development/python-modules/greatfet/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

69 lines
1.3 KiB
Nix

{
buildPythonPackage,
cmsis-svd,
fetchFromGitHub,
future,
ipython,
lib,
prompt-toolkit,
pyfwup,
pygreat,
pyusb,
setuptools,
tabulate,
tqdm,
}:
buildPythonPackage rec {
pname = "greatfet";
version = "2024.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = "greatfet";
tag = "v${version}";
hash = "sha256-3ClM4UzVIDEkVBrFwzvLokbxUHXqdQWyNVqcFtiXCOQ=";
};
sourceRoot = "${src.name}/host";
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail ', "setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [ setuptools ];
pythonRelaxDeps = [ "ipython" ];
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
];
};
}