mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
d52c763b99
- add format
38 lines
761 B
Nix
38 lines
761 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cython
|
|
, fetchPypi
|
|
, jdk
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyjnius";
|
|
version = "1.5.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ZjRuJk8eIghrh8XINonqvP7xRQrGR2/YVr6kmLLhNz4=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/kivy/pyjnius/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ifurther ];
|
|
};
|
|
}
|