Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 40 lines 839 B view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, pytestCheckHook 6, pytest-cov 7, setuptools_scm 8}: 9 10buildPythonPackage rec { 11 pname = "cbor2"; 12 version = "5.2.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "a33aa2e5534fd74401ac95686886e655e3b2ce6383b3f958199b6e70a87c94bf"; 17 }; 18 19 nativeBuildInputs = [ setuptools_scm ]; 20 21 checkInputs = [ 22 pytest-cov 23 pytestCheckHook 24 ]; 25 26 # https://github.com/agronholm/cbor2/issues/99 27 disabledTests = lib.optionals stdenv.is32bit [ 28 "test_huge_truncated_bytes" 29 "test_huge_truncated_string" 30 ]; 31 32 pythonImportsCheck = [ "cbor2" ]; 33 34 meta = with lib; { 35 description = "Python CBOR (de)serializer with extensive tag support"; 36 homepage = "https://github.com/agronholm/cbor2"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ taneb ]; 39 }; 40}