1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchPypi, 6 jdk, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pyjnius"; 12 version = "1.7.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-n4FwhISwqE6tPrC6hOU6xXnkxDyhDHRvmJip891Q9U0="; 20 }; 21 22 nativeBuildInputs = [ 23 jdk 24 cython 25 ]; 26 27 pythonImportsCheck = [ "jnius" ]; 28 29 meta = with lib; { 30 description = "Python module to access Java classes as Python classes using the Java Native Interface (JNI)"; 31 homepage = "https://github.com/kivy/pyjnius"; 32 changelog = "https://github.com/kivy/pyjnius/blob/${version}/CHANGELOG.md"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ ifurther ]; 35 }; 36}