1{ lib, buildPythonPackage, fetchPypi, pytest, pytestcov, setuptools_scm }:
2
3buildPythonPackage rec {
4 pname = "cbor2";
5 version = "5.1.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "91759bd0ee5ef0d4fa24144dfa551670730baeca8cf2fff1cc59f734ecd21de6";
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}