2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2022-11-21 17:40:18 +00:00
|
|
|
, pythonOlder
|
2022-02-20 05:27:41 +00:00
|
|
|
, poetry
|
2022-11-21 17:40:18 +00:00
|
|
|
, typer
|
2022-02-20 05:27:41 +00:00
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.2.1";
|
2022-02-20 05:27:41 +00:00
|
|
|
pname = "pipenv-poetry-migrate";
|
|
|
|
format = "pyproject";
|
2022-11-21 17:40:18 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
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}";
|
|
|
|
hash = "sha256-aP8bzWFUzAZrEsz8pYL2y5c7GaUjWG5GA+cc4/tGPZk=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
poetry
|
2022-11-21 17:40:18 +00:00
|
|
|
typer
|
2022-02-20 05:27:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-11-21 17:40:18 +00:00
|
|
|
substituteInPlace pyproject.toml --replace 'typer = "^0.4.0"' 'typer = ">=0.4"'
|
2022-02-20 05:27:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|