git.iko.soy/typeable/nixpkgs
on master help sign in
python38Packages.flask-restx: init at 0.2.0
commit294e42e595c750764fba8f5009737fb4fd5567b0 authorMario Rodas <marsam@users.noreply.github.com> dateThu 13 Aug 2020, 23:22 (6 years ago) parent67d7623
2 files changed+52
pkgs/development/python-modules/flask-restx/default.nix+50 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/flask-restx/default.nixnew file+50
@@ -0,0 +1,50 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, aniso8601
5+, jsonschema
6+, flask
7+, werkzeug
8+, pytz
9+, faker
10+, six
11+, enum34
12+, isPy27
13+, mock
14+, blinker
15+, pytest-flask
16+, pytest-mock
17+, pytest-benchmark
18+, pytestCheckHook
19+}:
20+
21+buildPythonPackage rec {
22+ pname = "flask-restx";
23+ version = "0.2.0";
24+
25+ # Tests not included in PyPI tarball
26+ src = fetchFromGitHub {
27+ owner = "python-restx";
28+ repo = pname;
29+ rev = version;
30+ sha256 = "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7";
31+ };
32+
33+ propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ]
34+ ++ lib.optionals isPy27 [ enum34 ];
35+
36+ checkInputs = [ pytestCheckHook faker mock pytest-flask pytest-mock pytest-benchmark blinker ];
37+
38+ pytestFlagsArray = [
39+ "--benchmark-disable"
40+ "--deselect=tests/test_inputs.py::URLTest::test_check"
41+ "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
42+ ];
43+
44+ meta = with lib; {
45+ homepage = "https://flask-restx.readthedocs.io/en/${version}/";
46+ description = "Fully featured framework for fast, easy and documented API development with Flask";
47+ license = licenses.bsd3;
48+ maintainers = [ maintainers.marsam ];
49+ };
50+}
pkgs/top-level/python-packages.nix+2
@@ -4012,6 +4012,8 @@ in {
40124012
40134013 flask-restplus = callPackage ../development/python-modules/flask-restplus { };
40144014
4015+ flask-restx = callPackage ../development/python-modules/flask-restx { };
4016+
40154017 flask-reverse-proxy-fix = callPackage ../development/python-modules/flask-reverse-proxy-fix { };
40164018
40174019 flask_script = callPackage ../development/python-modules/flask-script { };