Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / jpype1 / default.nix
blobdc16012391877c1d84c78b2553b930c4741d4bda
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPy27
5 , packaging
6 , pythonOlder
7 , typing-extensions
8 , pytest
9 }:
11 buildPythonPackage rec {
12   pname = "jpype1";
13   version = "1.4.1";
14   disabled = isPy27;
16   src = fetchPypi {
17     pname = "JPype1";
18     inherit version;
19     hash = "sha256-3I7oVAc0dK15rhaNkML2iThU9Yk2z6GPNYfK2uDTaW0=";
20   };
22   propagatedBuildInputs = [
23     packaging
24   ] ++ lib.optionals (pythonOlder "3.8") [
25     typing-extensions
26   ];
28   nativeCheckInputs = [
29     pytest
30   ];
32   # required openjdk (easy) but then there were some class path issues
33   # when running the tests
34   doCheck = false;
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   };