nixpkgs/pkgs/tools/misc/piston-cli/default.nix

25 lines
614 B
Nix
Raw Normal View History

2021-02-10 00:32:54 +00:00
{ lib, python3Packages }:
python3Packages.buildPythonApplication rec {
2021-02-10 00:32:54 +00:00
pname = "piston-cli";
version = "1.2.1";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "bf0hhKb+6+07HhrkFrsWCnUQfsQWOdK/dPTlt9iZTno=";
};
propagatedBuildInputs = with python3Packages; [ rich prompt_toolkit requests pygments ];
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 ];
};
}