0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
49 lines
992 B
Nix
49 lines
992 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, poetry-core
|
|
, tomlkit
|
|
, typer
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.3.0";
|
|
pname = "pipenv-poetry-migrate";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yhino";
|
|
repo = "pipenv-poetry-migrate";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-j6YAHMjgaQgHpKBH67PFEUHhLi+kg3L966GbEyMPphM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
setuptools # for pkg_resources
|
|
tomlkit
|
|
typer
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml --replace 'typer = "^0.4.0"' 'typer = ">=0.4"'
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "This is simple migration script, migrate pipenv to poetry";
|
|
homepage = "https://github.com/yhino/pipenv-poetry-migrate";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ gador ];
|
|
};
|
|
}
|