1{ lib 2, buildPythonPackage 3, fetchPypi 4, django 5, pillow 6, python_magic 7}: 8 9buildPythonPackage rec { 10 pname = "django-versatileimagefield"; 11 version = "2.2"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "6569d5c3e13c69ab8912ba5100084aa5abcdcffb8d1f5abc085b226e7bbd65b3"; 16 }; 17 propagatedBuildInputs = [ pillow python_magic ]; 18 19 checkInputs = [ django ]; 20 21 # tests not included with pypi release 22 doCheck = false; 23 24 pythonImportsCheck = [ "versatileimagefield" ]; 25 26 meta = with lib; { 27 description = "Replaces django's ImageField with a more flexible interface"; 28 homepage = "https://github.com/respondcreate/django-versatileimagefield/"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ mmai ]; 31 }; 32} 33