1{ lib
2, buildPythonPackage
3, fetchPypi
4, django
5, pillow
6, python-magic
7}:
8
9buildPythonPackage rec {
10 pname = "django-versatileimagefield";
11 version = "3.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-FlHbLtNthDz7F4jyYBRyopPZuoZyk2m29uVZERI1esc=";
16 };
17 propagatedBuildInputs = [ pillow python-magic ];
18
19 nativeCheckInputs = [ 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