Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 23 lines 605 B view raw
1{ lib, buildPythonPackage, fetchPypi, pytest, pytestcov, setuptools_scm }: 2 3buildPythonPackage rec { 4 pname = "cbor2"; 5 version = "5.0.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1fid6li95jx9c3v83v8c2c8lb03jgirkk9mjmck30yxcwmlxp6a2"; 10 }; 11 12 nativeBuildInputs = [ setuptools_scm ]; 13 checkInputs = [ pytest pytestcov ]; 14 15 checkPhase = "pytest"; 16 17 meta = with lib; { 18 description = "Pure Python CBOR (de)serializer with extensive tag support"; 19 homepage = https://github.com/agronholm/cbor2; 20 license = licenses.mit; 21 maintainers = with maintainers; [ taneb ]; 22 }; 23}