2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2022-11-21 17:40:18 +00:00
|
|
|
, pythonOlder
|
2022-12-02 08:20:57 +00:00
|
|
|
, poetry-core
|
|
|
|
, tomlkit
|
2022-11-21 17:40:18 +00:00
|
|
|
, typer
|
2022-02-20 05:27:41 +00:00
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pipenv-poetry-migrate";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.5.0";
|
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}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-z5pBkB5J8FnuebMW4bPpk0cT2nd5bH/4PBR12g0lEQw=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-20 05:27:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This is simple migration script, migrate pipenv to poetry";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|