python312Packages.iterfzf: init at 1.4.0.51.0
Pythonic interface to fzf, a CLI fuzzy finder https://github.com/dahlia/iterfzf
This commit is contained in:
parent
33ce263359
commit
97904031e2
62
pkgs/development/python-modules/iterfzf/default.nix
Normal file
62
pkgs/development/python-modules/iterfzf/default.nix
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
flit-core,
|
||||
fzf,
|
||||
packaging,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "iterfzf";
|
||||
version = "1.4.0.51.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dahlia";
|
||||
repo = "iterfzf";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-Xjk+r2PdIg+oULA5gfI129p1fNOO8RINNxP+pveiocM=";
|
||||
};
|
||||
|
||||
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"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "iterfzf" ];
|
||||
|
||||
meta = with lib; {
|
||||
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 = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -5971,6 +5971,8 @@ self: super: with self; {
|
||||
|
||||
iterative-telemetry = callPackage ../development/python-modules/iterative-telemetry { };
|
||||
|
||||
iterfzf = callPackage ../development/python-modules/iterfzf { };
|
||||
|
||||
iterm2 = callPackage ../development/python-modules/iterm2 { };
|
||||
|
||||
itsdangerous = callPackage ../development/python-modules/itsdangerous { };
|
||||
|
Loading…
Reference in New Issue
Block a user