diff options
author | ifurther <55025025+ifurther@users.noreply.github.com> | 2022-09-07 00:57:33 +0800 |
---|---|---|
committer | ifurther <55025025+ifurther@users.noreply.github.com> | 2022-09-07 00:57:33 +0800 |
commit | dbd69e7feda41f1381ded06caa27ea540a2cf5da (patch) | |
tree | 531e0db2ca786e5862707c9f4a264d0378c8cdba /pkgs/development | |
parent | f367b52ccb85cbecb62de134f3851432e8614aec (diff) |
python3Packages.pyjnius: init at 1.4.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pyjnius/default.nix | 31 | ||||
-rw-r--r-- | pkgs/development/tools/pipenv/default.nix | 4 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyjnius/default.nix b/pkgs/development/python-modules/pyjnius/default.nix new file mode 100644 index 000000000000..b53dd83205f3 --- /dev/null +++ b/pkgs/development/python-modules/pyjnius/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/development/tools/pipenv/default.nix b/pkgs/development/tools/pipenv/default.nix index 6f51eb892df8..2a8a78f7b52b 100644 --- a/pkgs/development/tools/pipenv/default.nix +++ b/pkgs/development/tools/pipenv/default.nix @@ -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; |