1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, poetry
7, typer
8, setuptools
9}:
10
11buildPythonPackage rec {
12 version = "0.2.1";
13 pname = "pipenv-poetry-migrate";
14 format = "pyproject";
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "yhino";
19 repo = "pipenv-poetry-migrate";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-aP8bzWFUzAZrEsz8pYL2y5c7GaUjWG5GA+cc4/tGPZk=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 ];
27
28 propagatedBuildInputs = [
29 poetry
30 typer
31 ];
32
33 postPatch = ''
34 substituteInPlace pyproject.toml --replace 'typer = "^0.4.0"' 'typer = ">=0.4"'
35 '';
36
37 checkInputs = [
38 pytestCheckHook
39 ];
40
41 meta = with lib; {
42 description = "This is simple migration script, migrate pipenv to poetry";
43 homepage = "https://github.com/yhino/pipenv-poetry-migrate";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ gador ];
46 };
47}