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