diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2021-11-24 17:40:40 +0100 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2021-11-24 17:40:40 +0100 |
commit | 2d083acf666f7f7c7a4ca6e5c665207aa58d1ba2 (patch) | |
tree | f3a777ecd96948978c05772b1f272dacde6194be /pkgs/development/python-modules/apispec | |
parent | c935f5e0add2cf0ae650d072c8357533e21b0c35 (diff) |
tribler: 7.4.4 -> 7.10.0
This also adds old versions of apispec and webargs that tribler requires, and aiohttp-apispec as well.
Diffstat (limited to 'pkgs/development/python-modules/apispec')
-rw-r--r-- | pkgs/development/python-modules/apispec/3.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/apispec/3.nix b/pkgs/development/python-modules/apispec/3.nix new file mode 100644 index 0000000000000..e60a440df3f4b --- /dev/null +++ b/pkgs/development/python-modules/apispec/3.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pyyaml +, prance +, marshmallow +, pytestCheckHook +, mock +, openapi-spec-validator +}: + +buildPythonPackage rec { + pname = "apispec"; + version = "3.3.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "d23ebd5b71e541e031b02a19db10b5e6d5ef8452c552833e3e1afc836b40b1ad"; + }; + + propagatedBuildInputs = [ + pyyaml + prance + ]; + + postPatch = '' + rm tests/test_ext_marshmallow.py + ''; + + checkInputs = [ + openapi-spec-validator + marshmallow + mock + pytestCheckHook + ]; + + pythonImportsCheck = [ + "apispec" + ]; + + meta = with lib; { + description = "A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification"; + homepage = "https://github.com/marshmallow-code/apispec"; + license = licenses.mit; + maintainers = [ maintainers.viric ]; + }; +} |