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 3 python3Packages.buildPythonApplication rec { 4 4 pname = "piston-cli"; 5 5 version = "1.4.3"; 6 + format = "pyproject"; 6 7 7 8 src = python3Packages.fetchPypi { 8 9 inherit pname version; ··· 13 14 14 15 checkPhase = '' 15 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 = "*"' 16 27 ''; 17 28 18 29 meta = with lib; {