2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, aniso8601
|
|
|
|
, blinker
|
2021-06-28 23:13:55 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, flask
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pytestCheckHook
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
|
|
|
, six
|
|
|
|
, werkzeug
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-05-18 14:49:53 +00:00
|
|
|
pname = "flask-restful";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.3.9";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-05-18 14:49:53 +00:00
|
|
|
pname = "Flask-RESTful";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-zOxlC4NdSBkhOMhTKa4Dc15s7VjpstnCFG1shMBvpT4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
patches = lib.optionals (lib.versionAtLeast werkzeug.version "2.1.0") [
|
2022-04-27 09:35:20 +00:00
|
|
|
./werkzeug-2.1.0-compat.patch
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aniso8601
|
|
|
|
flask
|
|
|
|
pytz
|
|
|
|
six
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
checkInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
blinker
|
2021-06-28 23:13:55 +00:00
|
|
|
mock
|
|
|
|
nose
|
2022-05-18 14:49:53 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"flask_restful"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-18 14:49:53 +00:00
|
|
|
description = "Framework for creating REST APIs";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://flask-restful.readthedocs.io";
|
|
|
|
longDescription = ''
|
|
|
|
Flask-RESTful provides the building blocks for creating a great
|
|
|
|
REST API.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|