Merge pull request #203287 from xzfc/piston-cli

piston-cli: fix build
This commit is contained in:
Alexander Bantyev 2022-11-27 21:01:19 +04:00 committed by GitHub
commit 22bb8269e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
python3Packages.buildPythonApplication rec {
pname = "piston-cli";
version = "1.4.3";
format = "pyproject";
src = python3Packages.fetchPypi {
inherit pname version;
@ -15,6 +16,16 @@ python3Packages.buildPythonApplication rec {
$out/bin/piston --help > /dev/null
'';
nativeBuildInputs = with python3Packages; [
poetry-core
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'rich = "^10.1.0"' 'rich = "*"' \
--replace 'PyYAML = "^5.4.1"' 'PyYAML = "*"'
'';
meta = with lib; {
broken = stdenv.isDarwin;
description = "Piston api tool";