python3Packages.pyjnius: init at 1.4.0
This commit is contained in:
parent
f367b52ccb
commit
dbd69e7fed
31
pkgs/development/python-modules/pyjnius/default.nix
Normal file
31
pkgs/development/python-modules/pyjnius/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, python3
|
||||
, installShellFiles
|
||||
}:
|
||||
|
@ -13,6 +14,9 @@ let
|
|||
pip
|
||||
virtualenv
|
||||
virtualenv-clone
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isAndroid [
|
||||
pyjnius
|
||||
];
|
||||
|
||||
pythonEnv = python3.withPackages runtimeDeps;
|
||||
|
|
|
@ -7823,6 +7823,8 @@ in {
|
|||
|
||||
pyjks = callPackage ../development/python-modules/pyjks { };
|
||||
|
||||
pyjnius = callPackage ../development/python-modules/pyjnius { };
|
||||
|
||||
pyjsparser = callPackage ../development/python-modules/pyjsparser { };
|
||||
|
||||
pyjwkest = callPackage ../development/python-modules/pyjwkest { };
|
||||
|
|
Loading…
Reference in a new issue