python3Packages.canonicaljson: 1.4.0 -> 1.5.0

This commit is contained in:
Fabian Affolter 2021-10-21 20:40:49 +02:00
parent 1326545a4e
commit 04c91b2c6f

View file

@ -2,37 +2,43 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, frozendict , frozendict
, simplejson
, six
, isPy27
, pytestCheckHook , pytestCheckHook
, pythonOlder
, simplejson
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "canonicaljson"; pname = "canonicaljson";
version = "1.4.0"; version = "1.5.0";
disabled = isPy27;
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "899b7604f5a6a8a92109115d9250142cdf0b1dfdcb62cdb21d8fb5bf37780631"; sha256 = "sha256-Xr3c10xbBm7mjsylZGUzjpsTgEZ+CpBvR5dpfJ+zgeI=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
frozendict frozendict
simplejson simplejson
six
]; ];
checkInputs = [ pytestCheckHook ]; checkInputs = [
pytestCheckHook
];
disabledTests = [ disabledTests = [
"test_frozen_dict" "test_frozen_dict"
]; ];
pythonImportsCheck = [
"canonicaljson"
];
meta = with lib; { meta = with lib; {
description = "Encodes objects and arrays as RFC 7159 JSON";
homepage = "https://github.com/matrix-org/python-canonicaljson"; homepage = "https://github.com/matrix-org/python-canonicaljson";
description = "Encodes objects and arrays as RFC 7159 JSON.";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ];
}; };
} }