Merge pull request #203287 from xzfc/piston-cli

piston-cli: fix build

authored by Alexander Bantyev and committed by GitHub 22bb8269 94a3d6ef

+11
+11
pkgs/tools/misc/piston-cli/default.nix
··· 3 python3Packages.buildPythonApplication rec { 4 pname = "piston-cli"; 5 version = "1.4.3"; 6 7 src = python3Packages.fetchPypi { 8 inherit pname version; ··· 13 14 checkPhase = '' 15 $out/bin/piston --help > /dev/null 16 ''; 17 18 meta = with lib; {
··· 3 python3Packages.buildPythonApplication rec { 4 pname = "piston-cli"; 5 version = "1.4.3"; 6 + format = "pyproject"; 7 8 src = python3Packages.fetchPypi { 9 inherit pname version; ··· 14 15 checkPhase = '' 16 $out/bin/piston --help > /dev/null 17 + ''; 18 + 19 + nativeBuildInputs = with python3Packages; [ 20 + poetry-core 21 + ]; 22 + 23 + postPatch = '' 24 + substituteInPlace pyproject.toml \ 25 + --replace 'rich = "^10.1.0"' 'rich = "*"' \ 26 + --replace 'PyYAML = "^5.4.1"' 'PyYAML = "*"' 27 ''; 28 29 meta = with lib; {