Files
nixpkgs/pkgs/development/python-modules/iterfzf/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.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
fzf,
packaging,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "iterfzf";
version = "1.8.0.62.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dahlia";
repo = "iterfzf";
tag = version;
hash = "sha256-eLgF+9p+sqxWR1VkSoeL0NPDMamzUYbql4gMeG8fyNY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"' \
--replace-fail 'backend-path = ["."]' '# backend-path = ["."]' \
--replace-fail 'build-backend = "build_dist"' '# build-backend = "build_dist"'
substituteInPlace iterfzf/test_iterfzf.py \
--replace-fail 'executable="fzf"' 'executable="${fzf}/bin/fzf"'
'';
build-system = [
flit-core
setuptools
packaging
];
dependencies = [ fzf ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# AttributeError
"test_no_query"
"test_select_one_ambiguous"
"test_supports_color_kwarg"
];
pythonImportsCheck = [ "iterfzf" ];
meta = {
description = "Pythonic interface to fzf, a CLI fuzzy finder";
homepage = "https://github.com/dahlia/iterfzf";
changelog = "https://github.com/dahlia/iterfzf/releases/tag/${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.unix;
};
}