From c782a11715bc84ffa61b7375af69b11db0621141 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 2 Jun 2021 22:53:13 +0200 Subject: [PATCH] python3Packages.flask-restful: 0.3.8 -> 0.3.9 --- .../python-modules/flask-restful/default.nix | 46 +++++++++++++------ 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/flask-restful/default.nix b/pkgs/development/python-modules/flask-restful/default.nix index d5b48fd0428a..db7a63c5ed4a 100644 --- a/pkgs/development/python-modules/flask-restful/default.nix +++ b/pkgs/development/python-modules/flask-restful/default.nix @@ -1,30 +1,46 @@ -{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k -, nose, mock, blinker, pytest -, flask, six, pytz, aniso8601, pycrypto +{ lib +, buildPythonPackage +, fetchPypi +, aniso8601 +, flask +, pytz +, six +, blinker +, mock +, nose +, pytestCheckHook }: buildPythonPackage rec { pname = "Flask-RESTful"; - version = "0.3.8"; + version = "0.3.9"; src = fetchPypi { inherit pname version; - sha256 = "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"; + sha256 = "0gm5dz088v3d2k1dkcp9b3nnqpkk0fp2jly870hijj2xhc5nbv6c"; }; - propagatedBuildInputs = [ flask six pytz aniso8601 pycrypto ]; + propagatedBuildInputs = [ + aniso8601 + flask + pytz + six + ]; - checkInputs = [ pytest nose mock blinker ]; - - # test_reqparse.py: werkzeug move Multidict location (only imported in tests) - # handle_non_api_error isn't updated for addition encoding argument - checkPhase = '' - pytest --ignore=tests/test_reqparse.py -k 'not handle_non_api_error' - ''; + checkInputs = [ + pytestCheckHook + mock + nose + blinker + ]; meta = with lib; { - homepage = "https://flask-restful.readthedocs.io/"; - description = "REST API building blocks for Flask"; + homepage = "https://flask-restful.readthedocs.io"; + description = "Simple framework for creating REST APIs"; + longDescription = '' + Flask-RESTful provides the building blocks for creating a great + REST API. + ''; license = licenses.bsd3; }; }