depot/third_party/nixpkgs/pkgs/tools/misc/piston-cli/default.nix
Default email 14a1eeff01 Project import generated by Copybara.
GitOrigin-RevId: 6933d068c5d2fcff398e802f7c4e271bbdab6705
2021-05-29 03:34:57 +00:00

24 lines
621 B
Nix

{ lib, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "piston-cli";
version = "1.4.1";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "o8GPtSQ119AKB64hAH8VY6iJmhXcSFqjOanmXQl0tHo=";
};
propagatedBuildInputs = with python3Packages; [ rich prompt_toolkit requests pygments pyyaml ];
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 ];
};
}