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