diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-03-27 11:21:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 11:21:28 +0100 |
commit | 55c36ec47fbd76981d891d8bd3b7ee429690c1a3 (patch) | |
tree | 6383cebed65b456a240f080af05947362303808f /pkgs | |
parent | f87c956ea7bf39dd166c3572646ed23761801155 (diff) | |
parent | 6a3ecb0f6a13b7b6eef775596bcc16e49b817b31 (diff) |
Merge pull request #295651 from hennk/poetry-plugin-poeblix
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/package-management/poetry/default.nix | 1 | ||||
-rw-r--r-- | pkgs/tools/package-management/poetry/plugins/poetry-plugin-poeblix.nix | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/poetry/default.nix b/pkgs/tools/package-management/poetry/default.nix index d7442d74674f4..415a2c0274d3c 100644 --- a/pkgs/tools/package-management/poetry/default.nix +++ b/pkgs/tools/package-management/poetry/default.nix @@ -30,6 +30,7 @@ let poetry-audit-plugin = callPackage ./plugins/poetry-audit-plugin.nix { }; 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 { }; }; # selector is a function mapping pythonPackages to a list of plugins diff --git a/pkgs/tools/package-management/poetry/plugins/poetry-plugin-poeblix.nix b/pkgs/tools/package-management/poetry/plugins/poetry-plugin-poeblix.nix new file mode 100644 index 0000000000000..6e8cad3ef9530 --- /dev/null +++ b/pkgs/tools/package-management/poetry/plugins/poetry-plugin-poeblix.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +}: + +buildPythonPackage rec { + pname = "poetry-plugin-poeblix"; + version = "0.10.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "spoorn"; + repo = "poeblix"; + rev = "refs/tags/${version}"; + hash = "sha256-TKadEOk9kM3ZYsQmE2ftzjHNGNKI17p0biMr+Nskigs="; + }; + + postPatch = '' + sed -i '/poetry =/d' pyproject.toml + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + doCheck = false; + pythonImportsCheck = ["poeblix"]; + + meta = with lib; { + changelog = "https://github.com/spoorn/poeblix/releases/tag/${src.rev}"; + description = "Poetry Plugin that adds various features that extend the poetry command such as building wheel files with locked dependencies, and validations of wheel/docker containers"; + license = licenses.mit; + homepage = "https://github.com/spoorn/poeblix"; + maintainers = with maintainers; [ hennk ]; + }; +} |