nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 42 lines 845 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, poetry 6, rich 7, setuptools 8}: 9 10buildPythonPackage rec { 11 version = "0.2.0"; 12 pname = "pipenv-poetry-migrate"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "yhino"; 17 repo = "pipenv-poetry-migrate"; 18 rev = "v${version}"; 19 hash = "sha256-2/e6uGwpUvzxXlz+51gUriE054bgNeJNyLDCIyiGflM="; 20 }; 21 22 propagatedBuildInputs = [ 23 poetry 24 rich 25 setuptools 26 ]; 27 28 postPatch = '' 29 substituteInPlace pyproject.toml --replace 'rich = "^9.6.1"' 'rich = ">9"' 30 ''; 31 32 checkInputs = [ 33 pytestCheckHook 34 ]; 35 36 meta = with lib; { 37 description = "This is simple migration script, migrate pipenv to poetry"; 38 homepage = "https://github.com/yhino/pipenv-poetry-migrate"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ gador ]; 41 }; 42}