Loading pkgs/development/python-modules/bleak/default.nix +15 −2 Original line number Diff line number Diff line { lib, stdenv, async-timeout, bluez, buildPythonPackage, Loading @@ -10,6 +11,9 @@ pytestCheckHook, pythonOlder, typing-extensions, pyobjc-core, pyobjc-framework-CoreBluetooth, pyobjc-framework-libdispatch, }: buildPythonPackage rec { Loading @@ -26,7 +30,7 @@ buildPythonPackage rec { hash = "sha256-z0Mxr1pUQWNEK01PKMV/CzpW+GeCRcv/+9BADts1FuU="; }; postPatch = '' postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' # bleak checks BlueZ's version with a call to `bluetoothctl --version` substituteInPlace bleak/backends/bluezdbus/version.py \ --replace-fail \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\" Loading @@ -35,7 +39,16 @@ buildPythonPackage rec { build-system = [ poetry-core ]; dependencies = [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [ dbus-fast ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ pyobjc-core pyobjc-framework-CoreBluetooth pyobjc-framework-libdispatch ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ] ++ lib.optionals (pythonOlder "3.11") [ Loading @@ -54,7 +67,7 @@ buildPythonPackage rec { homepage = "https://github.com/hbldh/bleak"; changelog = "https://github.com/hbldh/bleak/blob/${src.tag}/CHANGELOG.rst"; license = licenses.mit; platforms = platforms.linux; platforms = platforms.linux ++ platforms.darwin; maintainers = with maintainers; [ oxzi ]; }; } pkgs/development/python-modules/pyobjc-core/default.nix +5 −6 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ buildPythonPackage rec { build-system = [ setuptools ]; buildInputs = [ darwin.DarwinTools darwin.libffi ]; Loading @@ -39,11 +38,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "objc" ]; meta = with lib; { meta = { description = "Python <-> Objective-C bridge"; homepage = "https://github.com/ronaldoussoren/pyobjc"; license = licenses.mit; platforms = platforms.darwin; maintainers = with maintainers; [ samuela ]; homepage = "https://github.com/ronaldoussoren/pyobjc/tree/main/pyobjc-core"; license = lib.licenses.mit; platforms = lib.platforms.darwin; maintainers = with lib.maintainers; [ samuela ]; }; } pkgs/development/python-modules/pyobjc-framework-Cocoa/default.nix +8 −12 Original line number Diff line number Diff line Loading @@ -9,15 +9,11 @@ buildPythonPackage rec { pname = "pyobjc-framework-Cocoa"; version = "11.1"; pyproject = true; src = fetchFromGitHub { owner = "ronaldoussoren"; repo = "pyobjc"; tag = "v${version}"; hash = "sha256-2qPGJ/1hXf3k8AqVLr02fVIM9ziVG9NMrm3hN1de1Us="; }; inherit (pyobjc-core) version src; patches = pyobjc-core.patches or [ ]; sourceRoot = "${src.name}/pyobjc-framework-Cocoa"; Loading Loading @@ -56,11 +52,11 @@ buildPythonPackage rec { "PyObjCTools" ]; meta = with lib; { meta = { description = "PyObjC wrappers for the Cocoa frameworks on macOS"; homepage = "https://github.com/ronaldoussoren/pyobjc"; license = licenses.mit; platforms = platforms.darwin; maintainers = with maintainers; [ samuela ]; homepage = "https://github.com/ronaldoussoren/pyobjc/tree/main/pyobjc-framework-Cocoa"; license = lib.licenses.mit; platforms = lib.platforms.darwin; maintainers = with lib.maintainers; [ samuela ]; }; } pkgs/development/python-modules/pyobjc-framework-CoreBluetooth/default.nix 0 → 100644 +66 −0 Original line number Diff line number Diff line { buildPythonPackage, darwin, fetchFromGitHub, lib, pyobjc-core, pyobjc-framework-Cocoa, setuptools, unittestCheckHook, }: buildPythonPackage rec { pname = "pyobjc-framework-CoreBluetooth"; pyproject = true; inherit (pyobjc-core) version src; patches = pyobjc-core.patches or [ ]; sourceRoot = "${src.name}/pyobjc-framework-CoreBluetooth"; build-system = [ setuptools ]; buildInputs = [ darwin.libffi ]; nativeBuildInputs = [ darwin.DarwinTools # sw_vers ]; nativeCheckInputs = [ unittestCheckHook ]; # See https://github.com/ronaldoussoren/pyobjc/pull/641. Unfortunately, we # cannot just pull that diff with fetchpatch due to https://discourse.nixos.org/t/how-to-apply-patches-with-sourceroot/59727. postPatch = '' substituteInPlace pyobjc_setup.py \ --replace-fail "-buildversion" "-buildVersion" \ --replace-fail "-productversion" "-productVersion" \ --replace-fail "/usr/bin/" "" ''; dependencies = [ pyobjc-core pyobjc-framework-Cocoa ]; env.NIX_CFLAGS_COMPILE = toString [ "-I${lib.getDev darwin.libffi}/include" "-Wno-error=unused-command-line-argument" ]; pythonImportsCheck = [ "CoreBluetooth" ]; meta = { description = "PyObjC wrappers for the CoreBluetooth framework on macOS"; homepage = "https://github.com/ronaldoussoren/pyobjc/tree/main/pyobjc-framework-CoreBluetooth"; license = lib.licenses.mit; platforms = lib.platforms.darwin; maintainers = with lib.maintainers; [ prusnak ]; }; } pkgs/development/python-modules/pyobjc-framework-libdispatch/default.nix 0 → 100644 +67 −0 Original line number Diff line number Diff line { buildPythonPackage, darwin, fetchFromGitHub, lib, pyobjc-core, pyobjc-framework-Cocoa, setuptools, unittestCheckHook, }: buildPythonPackage rec { pname = "pyobjc-framework-libdispatch"; pyproject = true; inherit (pyobjc-core) version src; patches = pyobjc-core.patches or [ ]; sourceRoot = "${src.name}/pyobjc-framework-libdispatch"; build-system = [ setuptools ]; buildInputs = [ darwin.libffi ]; nativeBuildInputs = [ darwin.DarwinTools # sw_vers ]; nativeCheckInputs = [ unittestCheckHook ]; # See https://github.com/ronaldoussoren/pyobjc/pull/641. Unfortunately, we # cannot just pull that diff with fetchpatch due to https://discourse.nixos.org/t/how-to-apply-patches-with-sourceroot/59727. postPatch = '' substituteInPlace pyobjc_setup.py \ --replace-fail "-buildversion" "-buildVersion" \ --replace-fail "-productversion" "-productVersion" \ --replace-fail "/usr/bin/" "" ''; dependencies = [ pyobjc-core pyobjc-framework-Cocoa ]; env.NIX_CFLAGS_COMPILE = toString [ "-I${darwin.libffi.dev}/include" "-Wno-error=unused-command-line-argument" ]; pythonImportsCheck = [ "dispatch" "libdispatch" ]; meta = { description = "PyObjC wrappers for the libdispatch framework on macOS"; homepage = "https://github.com/ronaldoussoren/pyobjc/tree/main/pyobjc-framework-libdispatch"; license = lib.licenses.mit; platforms = lib.platforms.darwin; maintainers = with lib.maintainers; [ prusnak ]; }; } Loading
pkgs/development/python-modules/bleak/default.nix +15 −2 Original line number Diff line number Diff line { lib, stdenv, async-timeout, bluez, buildPythonPackage, Loading @@ -10,6 +11,9 @@ pytestCheckHook, pythonOlder, typing-extensions, pyobjc-core, pyobjc-framework-CoreBluetooth, pyobjc-framework-libdispatch, }: buildPythonPackage rec { Loading @@ -26,7 +30,7 @@ buildPythonPackage rec { hash = "sha256-z0Mxr1pUQWNEK01PKMV/CzpW+GeCRcv/+9BADts1FuU="; }; postPatch = '' postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' # bleak checks BlueZ's version with a call to `bluetoothctl --version` substituteInPlace bleak/backends/bluezdbus/version.py \ --replace-fail \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\" Loading @@ -35,7 +39,16 @@ buildPythonPackage rec { build-system = [ poetry-core ]; dependencies = [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [ dbus-fast ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ pyobjc-core pyobjc-framework-CoreBluetooth pyobjc-framework-libdispatch ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ] ++ lib.optionals (pythonOlder "3.11") [ Loading @@ -54,7 +67,7 @@ buildPythonPackage rec { homepage = "https://github.com/hbldh/bleak"; changelog = "https://github.com/hbldh/bleak/blob/${src.tag}/CHANGELOG.rst"; license = licenses.mit; platforms = platforms.linux; platforms = platforms.linux ++ platforms.darwin; maintainers = with maintainers; [ oxzi ]; }; }
pkgs/development/python-modules/pyobjc-core/default.nix +5 −6 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ buildPythonPackage rec { build-system = [ setuptools ]; buildInputs = [ darwin.DarwinTools darwin.libffi ]; Loading @@ -39,11 +38,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "objc" ]; meta = with lib; { meta = { description = "Python <-> Objective-C bridge"; homepage = "https://github.com/ronaldoussoren/pyobjc"; license = licenses.mit; platforms = platforms.darwin; maintainers = with maintainers; [ samuela ]; homepage = "https://github.com/ronaldoussoren/pyobjc/tree/main/pyobjc-core"; license = lib.licenses.mit; platforms = lib.platforms.darwin; maintainers = with lib.maintainers; [ samuela ]; }; }
pkgs/development/python-modules/pyobjc-framework-Cocoa/default.nix +8 −12 Original line number Diff line number Diff line Loading @@ -9,15 +9,11 @@ buildPythonPackage rec { pname = "pyobjc-framework-Cocoa"; version = "11.1"; pyproject = true; src = fetchFromGitHub { owner = "ronaldoussoren"; repo = "pyobjc"; tag = "v${version}"; hash = "sha256-2qPGJ/1hXf3k8AqVLr02fVIM9ziVG9NMrm3hN1de1Us="; }; inherit (pyobjc-core) version src; patches = pyobjc-core.patches or [ ]; sourceRoot = "${src.name}/pyobjc-framework-Cocoa"; Loading Loading @@ -56,11 +52,11 @@ buildPythonPackage rec { "PyObjCTools" ]; meta = with lib; { meta = { description = "PyObjC wrappers for the Cocoa frameworks on macOS"; homepage = "https://github.com/ronaldoussoren/pyobjc"; license = licenses.mit; platforms = platforms.darwin; maintainers = with maintainers; [ samuela ]; homepage = "https://github.com/ronaldoussoren/pyobjc/tree/main/pyobjc-framework-Cocoa"; license = lib.licenses.mit; platforms = lib.platforms.darwin; maintainers = with lib.maintainers; [ samuela ]; }; }
pkgs/development/python-modules/pyobjc-framework-CoreBluetooth/default.nix 0 → 100644 +66 −0 Original line number Diff line number Diff line { buildPythonPackage, darwin, fetchFromGitHub, lib, pyobjc-core, pyobjc-framework-Cocoa, setuptools, unittestCheckHook, }: buildPythonPackage rec { pname = "pyobjc-framework-CoreBluetooth"; pyproject = true; inherit (pyobjc-core) version src; patches = pyobjc-core.patches or [ ]; sourceRoot = "${src.name}/pyobjc-framework-CoreBluetooth"; build-system = [ setuptools ]; buildInputs = [ darwin.libffi ]; nativeBuildInputs = [ darwin.DarwinTools # sw_vers ]; nativeCheckInputs = [ unittestCheckHook ]; # See https://github.com/ronaldoussoren/pyobjc/pull/641. Unfortunately, we # cannot just pull that diff with fetchpatch due to https://discourse.nixos.org/t/how-to-apply-patches-with-sourceroot/59727. postPatch = '' substituteInPlace pyobjc_setup.py \ --replace-fail "-buildversion" "-buildVersion" \ --replace-fail "-productversion" "-productVersion" \ --replace-fail "/usr/bin/" "" ''; dependencies = [ pyobjc-core pyobjc-framework-Cocoa ]; env.NIX_CFLAGS_COMPILE = toString [ "-I${lib.getDev darwin.libffi}/include" "-Wno-error=unused-command-line-argument" ]; pythonImportsCheck = [ "CoreBluetooth" ]; meta = { description = "PyObjC wrappers for the CoreBluetooth framework on macOS"; homepage = "https://github.com/ronaldoussoren/pyobjc/tree/main/pyobjc-framework-CoreBluetooth"; license = lib.licenses.mit; platforms = lib.platforms.darwin; maintainers = with lib.maintainers; [ prusnak ]; }; }
pkgs/development/python-modules/pyobjc-framework-libdispatch/default.nix 0 → 100644 +67 −0 Original line number Diff line number Diff line { buildPythonPackage, darwin, fetchFromGitHub, lib, pyobjc-core, pyobjc-framework-Cocoa, setuptools, unittestCheckHook, }: buildPythonPackage rec { pname = "pyobjc-framework-libdispatch"; pyproject = true; inherit (pyobjc-core) version src; patches = pyobjc-core.patches or [ ]; sourceRoot = "${src.name}/pyobjc-framework-libdispatch"; build-system = [ setuptools ]; buildInputs = [ darwin.libffi ]; nativeBuildInputs = [ darwin.DarwinTools # sw_vers ]; nativeCheckInputs = [ unittestCheckHook ]; # See https://github.com/ronaldoussoren/pyobjc/pull/641. Unfortunately, we # cannot just pull that diff with fetchpatch due to https://discourse.nixos.org/t/how-to-apply-patches-with-sourceroot/59727. postPatch = '' substituteInPlace pyobjc_setup.py \ --replace-fail "-buildversion" "-buildVersion" \ --replace-fail "-productversion" "-productVersion" \ --replace-fail "/usr/bin/" "" ''; dependencies = [ pyobjc-core pyobjc-framework-Cocoa ]; env.NIX_CFLAGS_COMPILE = toString [ "-I${darwin.libffi.dev}/include" "-Wno-error=unused-command-line-argument" ]; pythonImportsCheck = [ "dispatch" "libdispatch" ]; meta = { description = "PyObjC wrappers for the libdispatch framework on macOS"; homepage = "https://github.com/ronaldoussoren/pyobjc/tree/main/pyobjc-framework-libdispatch"; license = lib.licenses.mit; platforms = lib.platforms.darwin; maintainers = with lib.maintainers; [ prusnak ]; }; }