1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, poetry-core
7, tomlkit
8, typer
9, setuptools
10}:
11
12buildPythonPackage rec {
13 pname = "pipenv-poetry-migrate";
14 version = "0.5.1";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "yhino";
21 repo = "pipenv-poetry-migrate";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-b1ONVJzwvpuLKAtv2Rk3uUNt85mMChfGrlM+CpPACUw=";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 ];
29
30 propagatedBuildInputs = [
31 setuptools # for pkg_resources
32 tomlkit
33 typer
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 ];
39
40 meta = with lib; {
41 description = "This is simple migration script, migrate pipenv to poetry";
42 homepage = "https://github.com/yhino/pipenv-poetry-migrate";
43 changelog = "https://github.com/yhino/pipenv-poetry-migrate/blob/v${version}/CHANGELOG.md";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ gador ];
46 };
47}