Skip to content

Commit

Permalink
poetryPlugins.poetry-plugin-poeblix: init at 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hennk committed Mar 13, 2024
1 parent f2d82a2 commit dfa5675
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/tools/package-management/poetry/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
}:

buildPythonPackage rec {
pname = "poetry-plugin-poeblix";
version = "0.10.0";
format = "pyproject";

src = fetchFromGitHub {
owner = "spoorn";
repo = "poeblix";
rev = "refs/tags/${version}";
hash = "sha256-TKadEOk9kM3ZYsQmE2ftzjHNGNKI17p0biMr+Nskigs=";
};

postPatch = ''
sed -i '/poetry =/d' pyproject.toml
'';

nativeBuildInputs = [
poetry-core
];

# infinite recursion with poetry
doCheck = false;
pythonImportsCheck = [];

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

0 comments on commit dfa5675

Please sign in to comment.