b79da2786f
Conflicts: pkgs/development/python-modules/bundlewrap/default.nix pkgs/development/python-modules/coverage/default.nix pkgs/development/python-modules/h5netcdf/default.nix pkgs/development/python-modules/hypothesis/default.nix pkgs/development/python-modules/numba/default.nix pkgs/development/python-modules/optype/default.nix pkgs/development/python-modules/setuptools-git-versioning/default.nix pkgs/development/python-modules/sphinx/default.nix
54 lines
989 B
Nix
54 lines
989 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hypothesis,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
setuptools,
|
|
withCExtensions ? true,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cbor2";
|
|
version = "5.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-sZw1/K6WiKwB73W61dsnMAwlN+tO4A7QfgXYRWoNSTE=";
|
|
};
|
|
|
|
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";
|
|
|
|
};
|
|
}
|