Merge pull request #295651 from hennk/poetry-plugin-poeblix

This commit is contained in:
Sandro 2024-03-27 11:21:28 +01:00 committed by GitHub
commit 55c36ec47f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 44 additions and 0 deletions

View File

@ -7794,6 +7794,12 @@
matrix = "@chris:netsoj.nl";
name = "Chris Josten";
};
hennk = {
email = "henning.kiel@gmail.com";
github = "hennk";
githubId = 328259;
name = "Henning Kiel";
};
henrikolsson = {
email = "henrik@fixme.se";
github = "henrikolsson";

View File

@ -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

View File

@ -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 ];
};
}