1 { lib, stdenv, fetchurl, makeWrapper, jre }:
3 stdenv.mkDerivation rec {
9 url = "http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/${version}/jython-standalone-${version}.jar";
10 sha256 = "sha256-2n89gpsUi8+oawWdyWTjqFVv7bAhCWyNsH4wxm+qubQ=";
13 nativeBuildInputs = [ makeWrapper ];
19 cp $src $out/jython.jar
20 makeWrapper ${jre}/bin/java $out/bin/jython --add-flags "-jar $out/jython.jar"
24 description = "Python interpreter written in Java";
25 homepage = "https://jython.org/";
26 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
27 license = lib.licenses.psfl;
28 platforms = jre.meta.platforms;