1{ buildPythonPackage
2, cython
3, fetchPypi
4, jdk
5, lib
6, six
7}:
8
9buildPythonPackage rec {
10 pname = "pyjnius";
11 version = "1.4.2";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "sha256-/AY3zaSuEo7EqWrDJ9NS6H6oZnZLAdliZyhwvlOana4=";
16 };
17 propagatedBuildInputs = [
18 six
19 ];
20
21 nativeBuildInputs = [ jdk cython ];
22
23 pythonImportsCheck = [ "jnius" ];
24
25 meta = with lib; {
26 description = "A Python module to access Java classes as Python classes using the Java Native Interface (JNI)";
27 homepage = "https://github.com/kivy/pyjnius";
28 license = licenses.mit;
29 maintainers = with maintainers; [ ifurther ];
30 };
31}