2021-02-10 01:32:54 +01:00
|
|
|
{ lib, python3Packages }:
|
|
|
|
|
2021-02-14 19:08:11 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-02-10 01:32:54 +01:00
|
|
|
pname = "piston-cli";
|
2021-06-21 02:51:09 +02:00
|
|
|
version = "1.4.3";
|
2021-02-10 01:32:54 +01:00
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-21 02:51:09 +02:00
|
|
|
sha256 = "qvDGVJcaMXUajdUQWl4W1dost8k0PsS9XX/o8uQrtfY=";
|
2021-02-10 01:32:54 +01:00
|
|
|
};
|
|
|
|
|
2021-07-22 17:02:31 +02:00
|
|
|
propagatedBuildInputs = with python3Packages; [ rich prompt-toolkit requests pygments pyyaml more-itertools ];
|
2021-02-10 01:32:54 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/piston --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Piston api tool";
|
|
|
|
homepage = "https://github.com/Shivansh-007/piston-cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ethancedwards8 ];
|
|
|
|
};
|
|
|
|
}
|