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.3.0"; 13 disabled = isPy27; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "4fc27dba89750cb0c9d692466341ce60c0fe86a16051091cb5347a37cf884151"; 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 license = licenses.asl20; 35 description = "A Python to Java bridge"; 36 }; 37}