about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/django-versatileimagefield/default.nix
blob: 4eb9a8da773e2addf8472ed2762b57c67f8e4212 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv
, buildPythonPackage
, fetchPypi
, django
, python
, pillow
, python_magic
}:

buildPythonPackage rec {
  pname = "django-versatileimagefield";
  version = "1.11";

  src = fetchPypi {
    inherit pname version;
    sha256 = "8322ee9d7bf5ffa5360990320d2cc2efc7017feff35422636d49f625721edf82";
  };
  propagatedBuildInputs = [ pillow python_magic ];

  checkInputs = [ django ];

  # tests not included with pypi release
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Replaces django's ImageField with a more flexible interface";
    homepage = "https://github.com/respondcreate/django-versatileimagefield/";
    license = licenses.mit;
    maintainers = with maintainers; [ mmai ];
  };
}