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