Files
nixpkgs/pkgs/development/python-modules/apollo-fpga/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

62 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
# build-system
setuptools,
# dependencies
deprecation,
prompt-toolkit,
pyusb,
pyvcd,
pyxdg,
}:
buildPythonPackage rec {
pname = "apollo-fpga";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = "apollo";
tag = "v${version}";
hash = "sha256-EDI+bRDePEbkxfQKuDgRsJtlAE0jqcIoQHjpgW0jIoY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [
setuptools
];
dependencies = [
deprecation
prompt-toolkit
pyusb
pyvcd
pyxdg
];
# has no tests
doCheck = false;
pythonImportsCheck = [
"apollo_fpga"
];
meta = {
changelog = "https://github.com/greatscottgadgets/apollo/releases/tag/v${version}";
description = "Microcontroller-based FPGA / JTAG programmer";
homepage = "https://github.com/greatscottgadgets/apollo";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ carlossless ];
};
}