python3Packages.cbor2: 5.4.6 -> 5.5.1
https://github.com/agronholm/cbor2/releases/tag/5.5.0 https://github.com/agronholm/cbor2/releases/tag/5.5.1
This commit is contained in:
@@ -2,47 +2,56 @@
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
|
||||
# tests
|
||||
, hypothesis
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cbor2";
|
||||
version = "5.4.6";
|
||||
format = "setuptools";
|
||||
version = "5.5.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-uJNQDbD+Az5XDDrclWr27vxX4oACa9LYb9U9qfHllNc=";
|
||||
hash = "sha256-+eGS9GGp+PYILfKMA1sAbRU5BCE9yGQL7Ypy1yu8lHU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cbor2"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
hypothesis
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# https://github.com/agronholm/cbor2/issues/99
|
||||
disabledTests = lib.optionals stdenv.is32bit [
|
||||
"test_huge_truncated_bytes"
|
||||
"test_huge_truncated_string"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cbor2"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/agronholm/cbor2/releases/tag/${version}";
|
||||
description = "Python CBOR (de)serializer with extensive tag support";
|
||||
homepage = "https://github.com/agronholm/cbor2";
|
||||
license = licenses.mit;
|
||||
|
||||
Reference in New Issue
Block a user