python3Packages.cbor2: add option to build without C extensions
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user