2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
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";
|
2020-06-06 07:47:05 +01:00
|
|
|
version = "2.0";
|
2019-01-27 10:49:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:05 +01:00
|
|
|
sha256 = "b197e7066f23bb73b001a61525f2b1cae3dd654bf208a944a7ff5a3fe6107b51";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|