Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 36 lines 925 B view raw
1{ stdenv, lib, python3Packages, fetchPypi }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "piston-cli"; 5 version = "1.4.3"; 6 format = "pyproject"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "qvDGVJcaMXUajdUQWl4W1dost8k0PsS9XX/o8uQrtfY="; 11 }; 12 13 propagatedBuildInputs = with python3Packages; [ rich prompt-toolkit requests pygments pyyaml more-itertools ]; 14 15 checkPhase = '' 16 $out/bin/piston --help > /dev/null 17 ''; 18 19 nativeBuildInputs = with python3Packages; [ 20 poetry-core 21 ]; 22 23 postPatch = '' 24 substituteInPlace pyproject.toml \ 25 --replace 'rich = "^10.1.0"' 'rich = "*"' \ 26 --replace 'PyYAML = "^5.4.1"' 'PyYAML = "*"' 27 ''; 28 29 meta = with lib; { 30 broken = stdenv.isDarwin; 31 description = "Piston api tool"; 32 homepage = "https://github.com/Shivansh-007/piston-cli"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ ethancedwards8 ]; 35 }; 36}