1{ 2 lib, 3 buildPythonPackage, 4 django, 5 fetchPypi, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9 typing-extensions, 10}: 11 12buildPythonPackage rec { 13 pname = "django-stubs-ext"; 14 version = "4.2.7"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-UZNCrAhJzaFVl0bJpWPwP/mfY2sOvnwUt16BagDf3cM="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ 27 django 28 typing-extensions 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "django_stubs_ext" ]; 34 35 meta = with lib; { 36 description = "Extensions and monkey-patching for django-stubs"; 37 homepage = "https://github.com/typeddjango/django-stubs"; 38 changelog = "https://github.com/typeddjango/django-stubs/releases/tag/${version}"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ elohmeier ]; 41 }; 42}