pythonPackages.pyobjus: init at 1.2.4

Co-authored-by: Gaétan Lepage <gaetan@glepage.com>
Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com>
Co-authored-by: Sarah Clark <seclark@nextquestion.net>
This commit is contained in:
Pol Dellaiera
2026-06-02 10:42:16 +02:00
parent 4d9dd4d05f
commit 48d8d9cfbb
3 changed files with 75 additions and 1 deletions
@@ -11,7 +11,7 @@
# buildInputs
SDL2,
# ffpyplayer is not compatible with ffmpeg 7
# https://github.com/matham/ffpyplayer/issues/166
# https://github.com/matham/ffpyplayer/issues/16
ffmpeg_6,
}:
@@ -0,0 +1,72 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
# build-system
cython,
setuptools,
# buildInputs
libffi,
pytestCheckHook,
clang,
}:
buildPythonPackage (finalAttrs: {
pname = "pyobjus";
version = "1.2.4";
pyproject = true;
__structureAttrs = true;
src = fetchFromGitHub {
owner = "kivy";
repo = "pyobjus";
tag = "v${finalAttrs.version}";
hash = "sha256-rKMaXvUNdl8/wlDCQPGccQljnaCBSv/P68f7X1xOe0o=";
};
build-system = [
cython
setuptools
];
buildInputs = [
libffi
];
pythonImportsCheck = [ "pyobjus" ];
preCheck = ''
rm -rf pyobjus
make test_lib
mkdir -p $out/${python.sitePackages}/objc_classes
mv objc_classes/test $out/${python.sitePackages}/objc_classes
'';
postCheck = ''
rm -rf $out/${python.sitePackages}/objc_classes/test
'';
nativeCheckInputs = [
clang
pytestCheckHook
];
disabledTests = [
# AssertionError: False is not true
"test_multiple_delegates"
];
meta = {
changelog = "https://github.com/kivy/pyobjus/releases/tag/v${finalAttrs.version}";
description = "Access Objective-C classes from Python";
homepage = "https://github.com/kivy/pyobjus";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
drupol
];
platforms = lib.platforms.darwin;
};
})
+2
View File
@@ -14713,6 +14713,8 @@ self: super: with self; {
callPackage ../development/python-modules/pyobjc-framework-libdispatch
{ };
pyobjus = callPackage ../development/python-modules/pyobjus { };
pyocd = callPackage ../development/python-modules/pyocd { };
pyocd-pemicro = callPackage ../development/python-modules/pyocd-pemicro { };