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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
886 B
Nix
Raw Normal View History

{ stdenv, lib, python3Packages, fetchPypi }:
2021-02-10 00:32:54 +00:00
python3Packages.buildPythonApplication rec {
2021-02-10 00:32:54 +00:00
pname = "piston-cli";
2021-06-21 00:51:09 +00:00
version = "1.4.3";
2022-11-27 16:33:16 +00:00
format = "pyproject";
2021-02-10 00:32:54 +00:00
src = fetchPypi {
2021-02-10 00:32:54 +00:00
inherit pname version;
2021-06-21 00:51:09 +00:00
sha256 = "qvDGVJcaMXUajdUQWl4W1dost8k0PsS9XX/o8uQrtfY=";
2021-02-10 00:32:54 +00:00
};
propagatedBuildInputs = with python3Packages; [ rich prompt-toolkit requests pygments pyyaml more-itertools ];
2021-02-10 00:32:54 +00:00
checkPhase = ''
$out/bin/piston --help > /dev/null
'';
2022-11-27 16:33:16 +00:00
nativeBuildInputs = with python3Packages; [
poetry-core
2023-07-14 15:04:38 +00:00
pythonRelaxDepsHook
2022-11-27 16:33:16 +00:00
];
2023-07-14 15:04:38 +00:00
pythonRelaxDeps = [
"rich"
"more-itertools"
"PyYAML"
];
2022-11-27 16:33:16 +00:00
2021-02-10 00:32:54 +00:00
meta = with lib; {
broken = stdenv.isDarwin;
2021-02-10 00:32:54 +00:00
description = "Piston api tool";
homepage = "https://github.com/Shivansh-007/piston-cli";
license = licenses.mit;
maintainers = with maintainers; [ ethancedwards8 ];
2023-11-27 01:17:53 +00:00
mainProgram = "piston";
2021-02-10 00:32:54 +00:00
};
}