2019-03-14 12:22:29 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, pytestcov, setuptools_scm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cbor2";
|
2020-02-01 20:42:04 +01:00
|
|
|
version = "5.0.1";
|
2019-03-14 12:22:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-01 20:42:04 +01:00
|
|
|
sha256 = "1fid6li95jx9c3v83v8c2c8lb03jgirkk9mjmck30yxcwmlxp6a2";
|
2019-03-14 12:22:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
checkInputs = [ pytest pytestcov ];
|
|
|
|
|
|
|
|
checkPhase = "pytest";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Python CBOR (de)serializer with extensive tag support";
|
|
|
|
homepage = https://github.com/agronholm/cbor2;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ taneb ];
|
|
|
|
};
|
|
|
|
}
|