Merge pull request #316853 from fabaff/typer-shell
python312Packages.iterfzf: init at 1.4.0.51.0, python312Packages.typer-shell: init at 0.1.9
This commit is contained in:
commit
cc7df95a53
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 ];
|
||||
};
|
||||
}
|
59
pkgs/development/python-modules/typer-shell/default.nix
Normal file
59
pkgs/development/python-modules/typer-shell/default.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
click,
|
||||
click-shell,
|
||||
fetchFromGitHub,
|
||||
iterfzf,
|
||||
poetry-core,
|
||||
pythonRelaxDepsHook,
|
||||
pythonOlder,
|
||||
pyyaml,
|
||||
rich,
|
||||
typer,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "typer-shell";
|
||||
version = "0.1.9";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FergusFettes";
|
||||
repo = "typer-shell";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-y66Je9E0IWDuGrHtd1D8zP7E0EVfvrF3KOlA2dRFU+s=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"iterfzf"
|
||||
"typer"
|
||||
];
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
|
||||
dependencies = [
|
||||
click
|
||||
click-shell
|
||||
iterfzf
|
||||
pyyaml
|
||||
rich
|
||||
typer
|
||||
];
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "typer_shell" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for making beautiful shells/REPLs with Typer";
|
||||
homepage = "https://github.com/FergusFettes/typer-shell";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -5977,6 +5977,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 { };
|
||||
@ -15583,6 +15585,8 @@ self: super: with self; {
|
||||
|
||||
typer = callPackage ../development/python-modules/typer { };
|
||||
|
||||
typer-shell = callPackage ../development/python-modules/typer-shell { };
|
||||
|
||||
type-infer = callPackage ../development/python-modules/type-infer { };
|
||||
|
||||
types-aiobotocore = callPackage ../development/python-modules/types-aiobotocore { };
|
||||
|
Loading…
Reference in New Issue
Block a user