Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, buildPythonPackage, cargo, fetchFromGitHub, hypothesis, pytest-cov-stub, pytestCheckHook, rustc, rustPlatform, setuptools, setuptools-rust, setuptools-scm, withCExtensions ? true,}:
buildPythonPackage (finalAttrs: { pname = "cbor2"; version = "6.1.4"; pyproject = true;
src = fetchFromGitHub { owner = "agronholm"; repo = "cbor2"; tag = finalAttrs.version; hash = "sha256-3NrqJFDuVfOJcqD1EJJYzhkAkyduhIAaph6PiyM6m3k="; };
cargoRoot = "rust"; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src cargoRoot ; hash = "sha256-L9aYpPNGWf8h/NCjDwj5qper9sMSTCxPL91eIbb4hw0="; };
nativeBuildInputs = [ cargo rustc rustPlatform.cargoSetupHook ];
build-system = [ setuptools setuptools-scm setuptools-rust ];
nativeCheckInputs = [ hypothesis pytest-cov-stub pytestCheckHook ];
env = lib.optionalAttrs (!withCExtensions) { CBOR2_BUILD_C_EXTENSION = "0"; };
passthru = { inherit withCExtensions; };
pythonImportsCheck = [ "cbor2" ];
disabledTests = [ # AssertionError "test_invariant_encode_decode" ];
meta = { description = "Python CBOR (de)serializer with extensive tag support"; changelog = "https://github.com/agronholm/cbor2/releases/tag/${finalAttrs.src.tag}"; homepage = "https://github.com/agronholm/cbor2"; license = lib.licenses.mit; maintainers = [ ]; mainProgram = "cbor2";
};})