Loading pkgs/tools/package-management/poetry/default.nix +2 −0 Original line number Diff line number Diff line Loading @@ -20,9 +20,11 @@ let }; plugins = with python.pkgs; { poetry-plugin-up = callPackage ./plugins/poetry-plugin-up.nix { }; }; # selector is a function mapping pythonPackages to a list of plugins # e.g. poetry.withPlugins (ps: with ps; [ poetry-plugin-up ]) withPlugins = selector: let selected = selector plugins; in python.pkgs.toPythonApplication (python.pkgs.poetry.overridePythonAttrs (old: { Loading pkgs/tools/package-management/poetry/plugins/poetry-plugin-up.nix 0 → 100644 +43 −0 Original line number Diff line number Diff line { lib , fetchFromGitHub , buildPythonPackage , poetry-core , pytestCheckHook , pytest-mock , poetry }: buildPythonPackage rec { pname = "poetry-plugin-up"; version = "0.2.1"; format = "pyproject"; src = fetchFromGitHub { owner = "MousaZeidBaker"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-16p0emvgWa56Km8U5HualCSStbulqyINbC3Jez9Y1n0="; }; nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytestCheckHook pytest-mock poetry ]; preCheck = '' export HOME=$TMPDIR ''; meta = with lib; { description = "Poetry plugin to simplify package updates"; homepage = "https://github.com/MousaZeidBaker/poetry-plugin-up"; changelog = "https://github.com/MousaZeidBaker/poetry-plugin-up/releases/tag/${version}"; license = licenses.mit; maintainers = [ maintainers.k900 ]; }; } Loading
pkgs/tools/package-management/poetry/default.nix +2 −0 Original line number Diff line number Diff line Loading @@ -20,9 +20,11 @@ let }; plugins = with python.pkgs; { poetry-plugin-up = callPackage ./plugins/poetry-plugin-up.nix { }; }; # selector is a function mapping pythonPackages to a list of plugins # e.g. poetry.withPlugins (ps: with ps; [ poetry-plugin-up ]) withPlugins = selector: let selected = selector plugins; in python.pkgs.toPythonApplication (python.pkgs.poetry.overridePythonAttrs (old: { Loading
pkgs/tools/package-management/poetry/plugins/poetry-plugin-up.nix 0 → 100644 +43 −0 Original line number Diff line number Diff line { lib , fetchFromGitHub , buildPythonPackage , poetry-core , pytestCheckHook , pytest-mock , poetry }: buildPythonPackage rec { pname = "poetry-plugin-up"; version = "0.2.1"; format = "pyproject"; src = fetchFromGitHub { owner = "MousaZeidBaker"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-16p0emvgWa56Km8U5HualCSStbulqyINbC3Jez9Y1n0="; }; nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytestCheckHook pytest-mock poetry ]; preCheck = '' export HOME=$TMPDIR ''; meta = with lib; { description = "Poetry plugin to simplify package updates"; homepage = "https://github.com/MousaZeidBaker/poetry-plugin-up"; changelog = "https://github.com/MousaZeidBaker/poetry-plugin-up/releases/tag/${version}"; license = licenses.mit; maintainers = [ maintainers.k900 ]; }; }