Skip to content

Commit

Permalink
pipenv-poetry-migrate: move from python3Packages (#373681)
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium authored Jan 22, 2025
2 parents 0d52e8b + 3c90488 commit 6fefe63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
poetry-core,
tomlkit,
typer,
setuptools,
python3Packages,
}:

buildPythonPackage rec {
python3Packages.buildPythonApplication rec {
pname = "pipenv-poetry-migrate";
version = "0.6.0";
format = "pyproject";

disabled = pythonOlder "3.8";
pyproject = true;

src = fetchFromGitHub {
owner = "yhino";
Expand All @@ -24,22 +16,22 @@ buildPythonPackage rec {
hash = "sha256-M31bOvKGUlkzfZRQAxTkxhX8m9cCzEvsNZdyIyipwGI=";
};

nativeBuildInputs = [ poetry-core ];
build-system = [ python3Packages.poetry-core ];

propagatedBuildInputs = [
dependencies = with python3Packages; [
setuptools # for pkg_resources
tomlkit
typer
];

nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [ python3Packages.pytestCheckHook ];

meta = with lib; {
meta = {
description = "This is simple migration script, migrate pipenv to poetry";
mainProgram = "pipenv-poetry-migrate";
homepage = "https://github.com/yhino/pipenv-poetry-migrate";
changelog = "https://github.com/yhino/pipenv-poetry-migrate/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ gador ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ gador ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/python-aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ mapAliases ({
pdfx = throw "pdfx has been removed because the upstream repository was archived in 2023"; # Added 2024-10-04
pep257 = pydocstyle; # added 2022-04-12
pillow-simd = throw "pillow-simd has been removed for lagging behind pillow upstream, which exposes it to various security issues."; # Added 2024-10-24
pipenv-poetry-migrate = throw "pipenv-poetry-migrate was promoted to a top-level attribute"; # added 2025-01-14
pixelmatch = "pixelmatch has been removed as it was unmaintained"; # Added 2024-08-18
pkutils = throw "pkutils was removed as it was unused and is not applicable to modern Python build tools"; # added 2024-07-28
poetry = throw "poetry was promoted to a top-level attribute, use poetry-core to build Python packages"; # added 2023-01-09
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10461,8 +10461,6 @@ self: super: with self; {

pipe = callPackage ../development/python-modules/pipe { };

pipenv-poetry-migrate = callPackage ../development/python-modules/pipenv-poetry-migrate { };

piper-phonemize = callPackage ../development/python-modules/piper-phonemize {
onnxruntime-native = pkgs.onnxruntime;
piper-phonemize-native = pkgs.piper-phonemize;
Expand Down

0 comments on commit 6fefe63

Please sign in to comment.