2020-01-01 16:19:22 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-16 22:28:57 +02:00
|
|
|
, isPy27
|
2020-11-29 18:52:28 +01:00
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
2020-01-01 16:19:22 +01:00
|
|
|
, pytest
|
|
|
|
}:
|
2018-02-15 19:17:40 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "JPype1";
|
2021-01-18 01:51:14 +01:00
|
|
|
version = "1.2.1";
|
2020-06-16 22:28:57 +02:00
|
|
|
disabled = isPy27;
|
2018-02-15 19:17:40 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-18 01:51:14 +01:00
|
|
|
sha256 = "f210646127d24be73cfc6d807e2cda1c6b2ab39b7a293008e8b46367af6f2204";
|
2018-02-15 19:17:40 +01:00
|
|
|
};
|
|
|
|
|
2020-11-29 18:52:28 +01:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2020-01-01 16:19:22 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2018-02-15 19:17:40 +01:00
|
|
|
|
2020-01-01 16:19:22 +01:00
|
|
|
# required openjdk (easy) but then there were some class path issues
|
|
|
|
# when running the tests
|
2018-07-26 12:32:07 +02:00
|
|
|
doCheck = false;
|
2018-02-15 19:17:40 +01:00
|
|
|
|
2020-01-01 16:19:22 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/originell/jpype/";
|
2020-01-01 16:19:22 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "A Python to Java bridge";
|
2018-02-15 19:17:40 +01:00
|
|
|
};
|
|
|
|
}
|