3
0
Fork 0
forked from mirrors/nixpkgs

python310Packages.pipenv-poetry-migrate: use poetry-core

This commit is contained in:
Robert Schütz 2022-11-28 21:29:37 -08:00 committed by Robert Schütz
parent 1f17c1297c
commit 4af24f80e9

View file

@ -1,9 +1,11 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, poetry , poetry-core
, tomlkit
, typer , typer
, setuptools , setuptools
}: }:
@ -21,17 +23,26 @@ buildPythonPackage rec {
hash = "sha256-aP8bzWFUzAZrEsz8pYL2y5c7GaUjWG5GA+cc4/tGPZk="; hash = "sha256-aP8bzWFUzAZrEsz8pYL2y5c7GaUjWG5GA+cc4/tGPZk=";
}; };
nativeBuildInputs = [ patches = [
setuptools (fetchpatch {
name = "use-poetry-core.patch";
url = "https://github.com/yhino/pipenv-poetry-migrate/commit/726ebd823bf6ef982992085bd04e41d178775b98.patch";
hash = "sha256-TBVH1MZA0O1/2zLpVgNckLaP4JO3wIJJi0Nst726erk=";
})
];
nativeBuildInputs = [
poetry-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
poetry setuptools # for pkg_resources
tomlkit
typer typer
]; ];
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml --replace 'typer = "^0.4.0"' 'typer = ">=0.4"' substituteInPlace pyproject.toml --replace 'typer = "^0.4.0"' 'typer = ">=0.4"'
''; '';
checkInputs = [ checkInputs = [