2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
poetry-core,
|
|
|
|
tomlkit,
|
|
|
|
typer,
|
|
|
|
setuptools,
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pipenv-poetry-migrate";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.5.8";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "pyproject";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yhino";
|
|
|
|
repo = "pipenv-poetry-migrate";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-/wWAkO2WKn6o9JClkcxoGfHKZNI3GW9hSXmxmoUJpUM=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-12-02 08:20:57 +00:00
|
|
|
setuptools # for pkg_resources
|
|
|
|
tomlkit
|
2022-11-21 17:40:18 +00:00
|
|
|
typer
|
2022-02-20 05:27:41 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This is simple migration script, migrate pipenv to poetry";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pipenv-poetry-migrate";
|
2022-02-20 05:27:41 +00:00
|
|
|
homepage = "https://github.com/yhino/pipenv-poetry-migrate";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/yhino/pipenv-poetry-migrate/blob/v${version}/CHANGELOG.md";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ gador ];
|
|
|
|
};
|
|
|
|
}
|