1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, pythonOlder 6, typing-extensions 7, pytest 8}: 9 10buildPythonPackage rec { 11 pname = "JPype1"; 12 version = "1.4.0"; 13 disabled = isPy27; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-DF9mXuPm4xwn6dLUjdEr9OtP5oWII+ahEgGgNSdMz+E="; 18 }; 19 20 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ 21 typing-extensions 22 ]; 23 24 checkInputs = [ 25 pytest 26 ]; 27 28 # required openjdk (easy) but then there were some class path issues 29 # when running the tests 30 doCheck = false; 31 32 meta = with lib; { 33 homepage = "https://github.com/originell/jpype/"; 34 sourceProvenance = with sourceTypes; [ 35 fromSource 36 binaryBytecode 37 ]; 38 license = licenses.asl20; 39 description = "A Python to Java bridge"; 40 }; 41}