mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
piston-cli: fix build
This commit is contained in:
parent
a115bb9bd5
commit
779cfe0054
1 changed files with 11 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue