83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
45 lines
847 B
Nix
45 lines
847 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, packaging
|
|
, pythonOlder
|
|
, typing-extensions
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jpype1";
|
|
version = "1.4.1";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
pname = "JPype1";
|
|
inherit version;
|
|
hash = "sha256-3I7oVAc0dK15rhaNkML2iThU9Yk2z6GPNYfK2uDTaW0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
packaging
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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/";
|
|
sourceProvenance = with sourceTypes; [
|
|
fromSource
|
|
binaryBytecode
|
|
];
|
|
license = licenses.asl20;
|
|
description = "A Python to Java bridge";
|
|
};
|
|
}
|