From 9f1fae0536514f90d5c110b420c4b0b194042c2c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 26 Feb 2021 19:22:11 +0100 Subject: [PATCH] python3Packages.simplejson: 3.17.0 -> 3.17.2 --- .../python-modules/simplejson/default.nix | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/simplejson/default.nix b/pkgs/development/python-modules/simplejson/default.nix index fe08f5bbe2e5..dd27c02dc874 100644 --- a/pkgs/development/python-modules/simplejson/default.nix +++ b/pkgs/development/python-modules/simplejson/default.nix @@ -2,39 +2,35 @@ , buildPythonPackage , fetchFromGitHub , stdenv -, pytest +, pytestCheckHook }: buildPythonPackage rec { pname = "simplejson"; - version = "3.17.0"; + version = "3.17.2"; doCheck = !stdenv.isDarwin; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - sha256 = "1b1hhh1dia673vhq3jl2br1iqwb9yjii6iak56w96s9972vjbz3z"; + sha256 = "sha256-2ZC7aKyUUcth43Ce0j6JdjrJ4gb4QfJDlY2M5TLMQ+o="; }; - # Package does not need pytest, but its a bit easier debugging. - checkInputs = [ pytest ]; - # Ignore warnings because test does not expect them in stderr - # See https://github.com/simplejson/simplejson/issues/241 - checkPhase = '' - PYTHONWARNINGS="ignore" pytest simplejson/tests - ''; + checkInputs = [ pytestCheckHook ]; - meta = { - description = "A simple, fast, extensible JSON encoder/decoder for Python"; + pythonImportsCheck = [ "simplejson" ]; + + meta = with lib; { + description = "Extensible JSON encoder/decoder for Python"; longDescription = '' - simplejson is compatible with Python 2.4 and later with no - external dependencies. It covers the full JSON specification - for both encoding and decoding, with unicode support. By - default, encoding is done in an encoding neutral fashion (plain - ASCII with \uXXXX escapes for unicode characters). + simplejson covers the full JSON specification for both encoding + and decoding, with unicode support. By default, encoding is done + in an encoding neutral fashion (plain ASCII with \uXXXX escapes + for unicode characters). ''; homepage = "https://github.com/simplejson/simplejson"; - license = with lib.licenses; [ mit afl21 ]; + license = with licenses; [ mit afl21 ]; + maintainers = with maintainers; [ fab ]; }; }