01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
47 lines
940 B
Nix
47 lines
940 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, poetry
|
|
, typer
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.2.1";
|
|
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-aP8bzWFUzAZrEsz8pYL2y5c7GaUjWG5GA+cc4/tGPZk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
poetry
|
|
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 ];
|
|
};
|
|
}
|