poetryPlugins.poetry-plugin-shell: init at 1.0.0

This commit is contained in:
Robert Schütz
2025-01-06 07:02:25 -08:00
parent db0be3a558
commit a0fea4f1bd
2 changed files with 51 additions and 0 deletions
+1
View File
@@ -54,6 +54,7 @@ let
poetry-plugin-export = callPackage ./plugins/poetry-plugin-export.nix { };
poetry-plugin-up = callPackage ./plugins/poetry-plugin-up.nix { };
poetry-plugin-poeblix = callPackage ./plugins/poetry-plugin-poeblix.nix { };
poetry-plugin-shell = callPackage ./plugins/poetry-plugin-shell.nix { };
};
# selector is a function mapping pythonPackages to a list of plugins
@@ -0,0 +1,50 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
pexpect,
poetry,
poetry-core,
pytest-mock,
pytest-xdist,
pytestCheckHook,
shellingham,
}:
buildPythonPackage rec {
pname = "poetry-plugin-shell";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-poetry";
repo = "poetry-plugin-shell";
tag = version;
hash = "sha256-ynbZCzic6bAIwtG0rGk4oMPc8pm59UFboNAGUb0qJnE=";
};
build-system = [ poetry-core ];
buildInputs = [
poetry
];
dependencies = [
pexpect
shellingham
];
nativeCheckInputs = [
pytest-mock
pytest-xdist
pytestCheckHook
];
meta = {
changelog = "https://github.com/python-poetry/poetry-plugin-shell/blob/${src.tag}/CHANGELOG.md";
description = "Poetry plugin to run subshell with virtual environment activated";
homepage = "https://github.com/python-poetry/poetry-plugin-shell";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}