2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv, lib, python3Packages }:
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-02-13 14:23:35 +00:00
|
|
|
pname = "piston-cli";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.4.3";
|
2022-12-02 08:20:57 +00:00
|
|
|
format = "pyproject";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "qvDGVJcaMXUajdUQWl4W1dost8k0PsS9XX/o8uQrtfY=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ rich prompt-toolkit requests pygments pyyaml more-itertools ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/piston --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'rich = "^10.1.0"' 'rich = "*"' \
|
|
|
|
--replace 'PyYAML = "^5.4.1"' 'PyYAML = "*"'
|
|
|
|
'';
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-02-13 14:23:35 +00:00
|
|
|
description = "Piston api tool";
|
|
|
|
homepage = "https://github.com/Shivansh-007/piston-cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ethancedwards8 ];
|
|
|
|
};
|
|
|
|
}
|