2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-01-27 10:49:32 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, django
|
|
|
|
, python
|
|
|
|
, pillow
|
2020-05-18 18:19:37 +01:00
|
|
|
, python_magic
|
2019-01-27 10:49:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-versatileimagefield";
|
2021-06-18 22:47:14 +01:00
|
|
|
version = "2.1";
|
2019-01-27 10:49:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:14 +01:00
|
|
|
sha256 = "e98f7b0abfbf2559d55b08be40911dcc44b6f3437a6c40d81bf66b6914837fdf";
|
2019-01-27 10:49:32 +00:00
|
|
|
};
|
2020-05-18 18:19:37 +01:00
|
|
|
propagatedBuildInputs = [ pillow python_magic ];
|
2019-01-27 10:49:32 +00:00
|
|
|
|
|
|
|
checkInputs = [ django ];
|
|
|
|
|
|
|
|
# tests not included with pypi release
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-27 10:49:32 +00:00
|
|
|
description = "Replaces django's ImageField with a more flexible interface";
|
|
|
|
homepage = "https://github.com/respondcreate/django-versatileimagefield/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mmai ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|