1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 django, 6 pythonOlder, 7 djangorestframework, 8 pytestCheckHook, 9 pytest-django, 10 python, 11}: 12 13buildPythonPackage rec { 14 pname = "djangorestframework-csv"; 15 version = "3.0.2"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "mjumbewu"; 22 repo = "django-rest-framework-csv"; 23 tag = version; 24 hash = "sha256-XtMkSucB7+foRpTaRfGF1Co0n3ONNGyzex6MXR4xM5c="; 25 }; 26 27 dependencies = [ 28 django 29 djangorestframework 30 ]; 31 32 checkInputs = [ 33 pytestCheckHook 34 pytest-django 35 ]; 36 37 checkPhase = '' 38 runHook preCheck 39 ${python.interpreter} manage.py test 40 runHook postCheck 41 ''; 42 43 pythonImportsCheck = [ "rest_framework_csv" ]; 44 45 meta = { 46 description = "CSV Tools for Django REST Framework"; 47 homepage = "https://github.com/mjumbewu/django-rest-framework-csv"; 48 changelog = "https://github.com/mjumbewu/django-rest-framework-csv/releases/tag/${version}"; 49 license = lib.licenses.bsd2; 50 maintainers = [ lib.maintainers.onny ]; 51 }; 52}