nixpkgs/pkgs/development/python-modules/JPype1/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
792 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
2020-11-29 17:52:28 +00:00
, pythonOlder
, typing-extensions
, pytest
}:
2018-02-15 18:17:40 +00:00
buildPythonPackage rec {
pname = "JPype1";
2022-07-16 10:59:14 +00:00
version = "1.4.0";
disabled = isPy27;
2018-02-15 18:17:40 +00:00
src = fetchPypi {
inherit pname version;
2022-07-16 10:59:14 +00:00
sha256 = "sha256-DF9mXuPm4xwn6dLUjdEr9OtP5oWII+ahEgGgNSdMz+E=";
2018-02-15 18:17:40 +00:00
};
2020-11-29 17:52:28 +00:00
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
typing-extensions
];
checkInputs = [
pytest
];
2018-02-15 18:17:40 +00:00
# required openjdk (easy) but then there were some class path issues
# when running the tests
2018-07-26 10:32:07 +00:00
doCheck = false;
2018-02-15 18:17:40 +00:00
meta = with lib; {
homepage = "https://github.com/originell/jpype/";
sourceProvenance = with sourceTypes; [
fromSource
binaryBytecode
];
license = licenses.asl20;
description = "A Python to Java bridge";
2018-02-15 18:17:40 +00:00
};
}