Merge pull request #117055 from dotlambda/drf-yasg-fix

authored by

Sandro and committed by
GitHub
5147e2f0 8191fbba

+28 -10
+28 -10
pkgs/development/python-modules/drf-yasg/default.nix
··· 1 - { 2 - lib, 3 - buildPythonPackage, 4 - fetchPypi, 5 - inflection, 6 - ruamel_yaml, 7 - setuptools_scm, 8 - six, 9 - coreapi, 10 - djangorestframework, 11 }: 12 13 buildPythonPackage rec { ··· 19 sha256 = "d50f197c7f02545d0b736df88c6d5cf874f8fea2507ad85ad7de6ae5bf2d9e5a"; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools_scm 24 ]; ··· 30 coreapi 31 djangorestframework 32 ]; 33 34 meta = with lib; { 35 description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , inflection 5 + , ruamel_yaml 6 + , setuptools_scm 7 + , six 8 + , coreapi 9 + , djangorestframework 10 + , pytestCheckHook 11 + , pytest-django 12 + , datadiff 13 }: 14 15 buildPythonPackage rec { ··· 21 sha256 = "d50f197c7f02545d0b736df88c6d5cf874f8fea2507ad85ad7de6ae5bf2d9e5a"; 22 }; 23 24 + postPatch = '' 25 + # https://github.com/axnsan12/drf-yasg/pull/710 26 + substituteInPlace requirements/base.txt --replace packaging "" 27 + ''; 28 + 29 nativeBuildInputs = [ 30 setuptools_scm 31 ]; ··· 37 coreapi 38 djangorestframework 39 ]; 40 + 41 + checkInputs = [ 42 + pytestCheckHook 43 + pytest-django 44 + datadiff 45 + ]; 46 + 47 + # ImportError: No module named 'testproj.settings' 48 + doCheck = false; 49 + 50 + pythonImportsCheck = [ "drf_yasg" ]; 51 52 meta = with lib; { 53 description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";