-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177170 from ifurther/add-python-pyjnius
python3Packages.pyjnius: init at 1.4.0
- Loading branch information
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ buildPythonPackage | ||
, cython | ||
, fetchPypi | ||
, jdk | ||
, lib | ||
, six | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pyjnius"; | ||
version = "1.4.1"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "8bc1a1b06fb11df8dd8b8d56f5ecceab614d4ba70cf559c64ae2f146423d53ce"; | ||
}; | ||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters