3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.drf-yasg: init at 1.16.1

This commit is contained in:
ivegotasthma 2019-08-12 21:53:25 +02:00
parent 4135679907
commit cecfde44e6
No known key found for this signature in database
GPG key ID: 09AC52AEA87817A4
4 changed files with 46 additions and 4 deletions

View file

@ -31,8 +31,8 @@ buildPythonPackage rec {
checkInputs = [ pytest ];
checkPhase = ''
mv coreapi coreapi.hidden
pytest tests
cd ./tests
pytest
'';
meta = with stdenv.lib; {

View file

@ -21,8 +21,8 @@ buildPythonPackage rec {
checkInputs = [ pytest ];
checkPhase = ''
mv coreschema coreschema.hidden
pytest tests
cd ./tests
pytest
'';
meta = with stdenv.lib; {

View file

@ -0,0 +1,40 @@
{
stdenv,
buildPythonPackage,
fetchPypi,
inflection,
ruamel_yaml,
setuptools_scm,
six,
coreapi,
djangorestframework,
}:
buildPythonPackage rec {
pname = "drf-yasg";
version = "1.16.1";
src = fetchPypi {
inherit pname version;
sha256 = "0ri5h5xsacm99c6gvb4ldwisbqgiv2vq8qbn7vrh6vplzlpyvzb8";
};
nativeBuildInputs = [
setuptools_scm
];
propagatedBuildInputs = [
six
inflection
ruamel_yaml
coreapi
djangorestframework
];
meta = with stdenv.lib; {
description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
homepage = https://github.com/axnsan12/drf-yasg;
maintainers = with maintainers; [ ivegotasthma ];
license = licenses.bsd3;
};
}

View file

@ -2168,6 +2168,8 @@ in {
urllib3 = callPackage ../development/python-modules/urllib3 {};
drf-yasg = callPackage ../development/python-modules/drf-yasg { };
dropbox = callPackage ../development/python-modules/dropbox {};
drms = callPackage ../development/python-modules/drms { };