Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 52 lines 1.1 kB view raw
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.3.2"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "yhino"; 21 repo = "pipenv-poetry-migrate"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-aPG0MgChnJbivJRjYx9aQE5OPhL4WlPyt5uKCHZUpeE="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 propagatedBuildInputs = [ 31 setuptools # for pkg_resources 32 tomlkit 33 typer 34 ]; 35 36 postPatch = '' 37 substituteInPlace pyproject.toml \ 38 --replace 'typer = "^0.4.0"' 'typer = ">=0.4"' 39 ''; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 ]; 44 45 meta = with lib; { 46 description = "This is simple migration script, migrate pipenv to poetry"; 47 homepage = "https://github.com/yhino/pipenv-poetry-migrate"; 48 changelog = "https://github.com/yhino/pipenv-poetry-migrate/blob/v${version}/CHANGELOG.md"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ gador ]; 51 }; 52}