nixpkgs/pkgs/development/python-modules/JPype1/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

44 lines
833 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, packaging
, pythonOlder
, typing-extensions
, pytest
}:
buildPythonPackage rec {
pname = "JPype1";
version = "1.4.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "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";
};
}