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