depot/third_party/nixpkgs/pkgs/development/python-modules/pyjnius/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

31 lines
640 B
Nix

{ buildPythonPackage
, cython
, fetchPypi
, jdk
, lib
, six
}:
buildPythonPackage rec {
pname = "pyjnius";
version = "1.4.2";
src = fetchPypi {
inherit pname version;
hash = "sha256-/AY3zaSuEo7EqWrDJ9NS6H6oZnZLAdliZyhwvlOana4=";
};
propagatedBuildInputs = [
six
];
nativeBuildInputs = [ jdk cython ];
pythonImportsCheck = [ "jnius" ];
meta = with lib; {
description = "A Python module to access Java classes as Python classes using the Java Native Interface (JNI)";
homepage = "https://github.com/kivy/pyjnius";
license = licenses.mit;
maintainers = with maintainers; [ ifurther ];
};
}