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, 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 11 13 }: 12 14 13 15 buildPythonPackage rec { ··· 19 21 sha256 = "d50f197c7f02545d0b736df88c6d5cf874f8fea2507ad85ad7de6ae5bf2d9e5a"; 20 22 }; 21 23 24 + postPatch = '' 25 + # https://github.com/axnsan12/drf-yasg/pull/710 26 + substituteInPlace requirements/base.txt --replace packaging "" 27 + ''; 28 + 22 29 nativeBuildInputs = [ 23 30 setuptools_scm 24 31 ]; ··· 30 37 coreapi 31 38 djangorestframework 32 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" ]; 33 51 34 52 meta = with lib; { 35 53 description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";