159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
poetry-core,
|
|
tomlkit,
|
|
typer,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pipenv-poetry-migrate";
|
|
version = "0.5.9";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yhino";
|
|
repo = "pipenv-poetry-migrate";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-oV3HdqDuC0t6manVlBqf4cxAWx6U6CbNpCUsBwfAn+o=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
setuptools # for pkg_resources
|
|
tomlkit
|
|
typer
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|