python311Packages.rubicon-objc: init at 0.4.8

This commit is contained in:
natsukium 2023-06-04 01:15:12 +09:00
parent b57afc9bfb
commit 600219a3db
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,62 @@
{ lib
, buildPythonPackage
, darwin
, fetchFromGitHub
, pythonOlder
, setuptools
, setuptools-scm
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "rubicon-objc";
version = "0.4.8";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "beeware";
repo = "rubicon-objc";
rev = "refs/tags/v${version}";
hash = "sha256-aFKzLeVYn5u8hTEgXCum3XpZxI7C/Wql41jkWkCF0HQ=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools==69.2.0" "setuptools" \
--replace-fail "setuptools_scm==8.0.4" "setuptools_scm"
'';
build-system = [
setuptools
setuptools-scm
];
preCheck = ''
make -C tests/objc
'';
nativeCheckInputs = [
unittestCheckHook
];
checkInputs = [
darwin.apple_sdk.frameworks.Foundation
];
pythonImportsCheck = [
"rubicon.objc"
];
__darwinAllowLocalNetworking = true;
meta = {
description = "A bridge interface between Python and Objective-C";
homepage = "https://github.com/beeware/rubicon-objc/";
changelog = "https://github.com/beeware/rubicon-objc/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ natsukium ];
platforms = lib.platforms.darwin;
};
}

View File

@ -13404,6 +13404,8 @@ self: super: with self; {
ruamel-yaml-clib = callPackage ../development/python-modules/ruamel-yaml-clib { };
rubicon-objc = callPackage ../development/python-modules/rubicon-objc { };
rubymarshal = callPackage ../development/python-modules/rubymarshal { };
ruffus = callPackage ../development/python-modules/ruffus { };