2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-15 15:56:04 +00:00
|
|
|
, isPy27
|
2023-01-20 10:41:00 +00:00
|
|
|
, packaging
|
2020-12-07 07:45:13 +00:00
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "jpype1";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.4.1";
|
2020-06-15 15:56:04 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "JPype1";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-3I7oVAc0dK15rhaNkML2iThU9Yk2z6GPNYfK2uDTaW0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
2020-12-07 07:45:13 +00:00
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
# required openjdk (easy) but then there were some class path issues
|
|
|
|
# when running the tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/originell/jpype/";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
fromSource
|
|
|
|
binaryBytecode
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "A Python to Java bridge";
|
|
|
|
};
|
|
|
|
}
|