2021-01-15 21:30:03 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-cov
|
|
|
|
, setuptools_scm
|
|
|
|
}:
|
2019-03-14 12:22:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cbor2";
|
2020-11-04 16:37:37 +01:00
|
|
|
version = "5.2.0";
|
2019-03-14 12:22:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 16:37:37 +01:00
|
|
|
sha256 = "a33aa2e5534fd74401ac95686886e655e3b2ce6383b3f958199b6e70a87c94bf";
|
2019-03-14 12:22:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
2021-01-19 22:20:11 +01:00
|
|
|
checkInputs = [
|
2021-01-15 21:30:03 +01:00
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cbor2" ];
|
2019-03-14 12:22:29 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-01-15 21:30:03 +01:00
|
|
|
description = "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 ];
|
|
|
|
};
|
|
|
|
}
|