2019-03-14 12:22:29 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, pytestcov, setuptools_scm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cbor2";
|
2020-07-31 10:56:37 +02:00
|
|
|
version = "5.1.2";
|
2019-03-14 12:22:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-31 10:56:37 +02:00
|
|
|
sha256 = "91759bd0ee5ef0d4fa24144dfa551670730baeca8cf2fff1cc59f734ecd21de6";
|
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";
|
2020-04-06 15:49:14 +02:00
|
|
|
homepage = "https://github.com/agronholm/cbor2";
|
2019-03-14 12:22:29 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ taneb ];
|
|
|
|
};
|
|
|
|
}
|