2019-01-27 11:49:32 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, django
|
|
|
|
, python
|
|
|
|
, pillow
|
2020-05-18 19:19:37 +02:00
|
|
|
, python_magic
|
2019-01-27 11:49:32 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-versatileimagefield";
|
2019-12-19 20:31:09 +01:00
|
|
|
version = "1.11";
|
2019-01-27 11:49:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 20:31:09 +01:00
|
|
|
sha256 = "8322ee9d7bf5ffa5360990320d2cc2efc7017feff35422636d49f625721edf82";
|
2019-01-27 11:49:32 +01:00
|
|
|
};
|
2020-05-18 19:19:37 +02:00
|
|
|
propagatedBuildInputs = [ pillow python_magic ];
|
2019-01-27 11:49:32 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|