58849dfc4f
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
33 lines
750 B
Nix
33 lines
750 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, django
|
|
, pillow
|
|
, python_magic
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-versatileimagefield";
|
|
version = "2.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6569d5c3e13c69ab8912ba5100084aa5abcdcffb8d1f5abc085b226e7bbd65b3";
|
|
};
|
|
propagatedBuildInputs = [ pillow python_magic ];
|
|
|
|
checkInputs = [ django ];
|
|
|
|
# tests not included with pypi release
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "versatileimagefield" ];
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|
|
|