python3Packages.cbor2: add option to build without C extensions

This commit is contained in:
t4ccer
2025-05-31 20:35:51 +02:00
parent b1f58fc1ca
commit 960d4c5c8e
2 changed files with 14 additions and 0 deletions
@@ -4,6 +4,8 @@
fetchPypi,
pythonOlder,
withCExtensions ? true,
# build-system
setuptools,
setuptools-scm,
@@ -39,6 +41,14 @@ buildPythonPackage rec {
pytestCheckHook
];
env = lib.optionalAttrs (!withCExtensions) {
CBOR2_BUILD_C_EXTENSION = "0";
};
passthru = {
inherit withCExtensions;
};
meta = with lib; {
changelog = "https://github.com/agronholm/cbor2/releases/tag/${version}";
description = "Python CBOR (de)serializer with extensive tag support";
+4
View File
@@ -2282,6 +2282,10 @@ self: super: with self; {
cbor2 = callPackage ../development/python-modules/cbor2 { };
cbor2WithoutCExtensions = callPackage ../development/python-modules/cbor2 {
withCExtensions = false;
};
cccolutils = callPackage ../development/python-modules/cccolutils { krb5-c = pkgs.krb5; };
cdcs = callPackage ../development/python-modules/cdcs { };