depot/third_party/nixpkgs/pkgs/tools/misc/piston-cli/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

38 lines
886 B
Nix

{ stdenv, lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "piston-cli";
version = "1.4.3";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "qvDGVJcaMXUajdUQWl4W1dost8k0PsS9XX/o8uQrtfY=";
};
propagatedBuildInputs = with python3Packages; [ rich prompt-toolkit requests pygments pyyaml more-itertools ];
checkPhase = ''
$out/bin/piston --help > /dev/null
'';
nativeBuildInputs = with python3Packages; [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"rich"
"more-itertools"
"PyYAML"
];
meta = with lib; {
broken = stdenv.isDarwin;
description = "Piston api tool";
homepage = "https://github.com/Shivansh-007/piston-cli";
license = licenses.mit;
maintainers = with maintainers; [ ethancedwards8 ];
mainProgram = "piston";
};
}