blob: 698d88e2c5bf1f18b076bbc6308b1bc2eb3b054d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchPypi,
hypothesis,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools-scm,
setuptools,
withCExtensions ? true,
}:
buildPythonPackage rec {
pname = "cbor2";
version = "5.7.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-P22EP0200OxQHEZFPCKk++uxq/tbdA4byrNMYVzXQGs=";
};
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
hypothesis
pytest-cov-stub
pytestCheckHook
];
env = lib.optionalAttrs (!withCExtensions) {
CBOR2_BUILD_C_EXTENSION = "0";
};
passthru = {
inherit withCExtensions;
};
pythonImportsCheck = [ "cbor2" ];
meta = {
description = "Python CBOR (de)serializer with extensive tag support";
changelog = "https://github.com/agronholm/cbor2/releases/tag/${version}";
homepage = "https://github.com/agronholm/cbor2";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "cbor2";
};
}
|