blob: cefedfe7fc3715c38b551430687c14454e896a59 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{ lib
, aniso8601
, blinker
, buildPythonPackage
, fetchPypi
, flask
, mock
, nose
, pytestCheckHook
, pythonOlder
, pytz
, six
, werkzeug
}:
buildPythonPackage rec {
pname = "flask-restful";
version = "0.3.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Flask-RESTful";
inherit version;
hash = "sha256-zOxlC4NdSBkhOMhTKa4Dc15s7VjpstnCFG1shMBvpT4=";
};
patches = lib.optionals (lib.versionAtLeast werkzeug.version "2.1.0") [
./werkzeug-2.1.0-compat.patch
];
propagatedBuildInputs = [
aniso8601
flask
pytz
six
];
checkInputs = [
blinker
mock
nose
pytestCheckHook
];
pythonImportsCheck = [
"flask_restful"
];
meta = with lib; {
description = "Framework for creating REST APIs";
homepage = "https://flask-restful.readthedocs.io";
longDescription = ''
Flask-RESTful provides the building blocks for creating a great
REST API.
'';
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}
|