1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 isPy27,
6 packaging,
7 pythonOlder,
8 typing-extensions,
9 pytest,
10}:
11
12buildPythonPackage rec {
13 pname = "jpype1";
14 version = "1.5.0";
15 format = "setuptools";
16 disabled = isPy27;
17
18 src = fetchPypi {
19 pname = "JPype1";
20 inherit version;
21 hash = "sha256-QlpuGWav3VhItgwmiLyut+QLpQSmhvERRYlmjgYx6Hg=";
22 };
23
24 propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
25
26 nativeCheckInputs = [ pytest ];
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 sourceProvenance = with sourceTypes; [
35 fromSource
36 binaryBytecode
37 ];
38 license = licenses.asl20;
39 description = "Python to Java bridge";
40 };
41}