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