1{ stdenv, lib, python3Packages, fetchPypi }:
2
3python3Packages.buildPythonApplication rec {
4 pname = "piston-cli";
5 version = "1.4.3";
6 format = "pyproject";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "qvDGVJcaMXUajdUQWl4W1dost8k0PsS9XX/o8uQrtfY=";
11 };
12
13 propagatedBuildInputs = with python3Packages; [ rich prompt-toolkit requests pygments pyyaml more-itertools ];
14
15 checkPhase = ''
16 $out/bin/piston --help > /dev/null
17 '';
18
19 nativeBuildInputs = with python3Packages; [
20 poetry-core
21 pythonRelaxDepsHook
22 ];
23
24 pythonRelaxDeps = [
25 "rich"
26 "more-itertools"
27 "PyYAML"
28 ];
29
30 meta = with lib; {
31 broken = stdenv.isDarwin;
32 description = "Piston api tool";
33 homepage = "https://github.com/Shivansh-007/piston-cli";
34 license = licenses.mit;
35 maintainers = with maintainers; [ ethancedwards8 ];
36 };
37}