Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 40 lines 745 B view raw
1{ 2 stdenv, 3 buildPythonPackage, 4 fetchPypi, 5 inflection, 6 ruamel_yaml, 7 setuptools_scm, 8 six, 9 coreapi, 10 djangorestframework, 11}: 12 13buildPythonPackage rec { 14 pname = "drf-yasg"; 15 version = "1.16.1"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "0ri5h5xsacm99c6gvb4ldwisbqgiv2vq8qbn7vrh6vplzlpyvzb8"; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools_scm 24 ]; 25 26 propagatedBuildInputs = [ 27 six 28 inflection 29 ruamel_yaml 30 coreapi 31 djangorestframework 32 ]; 33 34 meta = with stdenv.lib; { 35 description = "Generation of Swagger/OpenAPI schemas for Django REST Framework"; 36 homepage = https://github.com/axnsan12/drf-yasg; 37 maintainers = with maintainers; [ ivegotasthma ]; 38 license = licenses.bsd3; 39 }; 40}