From 04c91b2c6f051d4ee6b454412d090d776348fccc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 21 Oct 2021 20:40:49 +0200 Subject: [PATCH] python3Packages.canonicaljson: 1.4.0 -> 1.5.0 --- .../python-modules/canonicaljson/default.nix | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/canonicaljson/default.nix b/pkgs/development/python-modules/canonicaljson/default.nix index ca64d599534e..b5679978c2cc 100644 --- a/pkgs/development/python-modules/canonicaljson/default.nix +++ b/pkgs/development/python-modules/canonicaljson/default.nix @@ -2,37 +2,43 @@ , buildPythonPackage , fetchPypi , frozendict -, simplejson -, six -, isPy27 , pytestCheckHook +, pythonOlder +, simplejson }: buildPythonPackage rec { pname = "canonicaljson"; - version = "1.4.0"; - disabled = isPy27; + version = "1.5.0"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "899b7604f5a6a8a92109115d9250142cdf0b1dfdcb62cdb21d8fb5bf37780631"; + sha256 = "sha256-Xr3c10xbBm7mjsylZGUzjpsTgEZ+CpBvR5dpfJ+zgeI="; }; propagatedBuildInputs = [ frozendict simplejson - six ]; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; disabledTests = [ "test_frozen_dict" ]; + pythonImportsCheck = [ + "canonicaljson" + ]; + meta = with lib; { + description = "Encodes objects and arrays as RFC 7159 JSON"; homepage = "https://github.com/matrix-org/python-canonicaljson"; - description = "Encodes objects and arrays as RFC 7159 JSON."; license = licenses.asl20; + maintainers = with maintainers; [ fab ]; }; }