fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
37 lines
783 B
Nix
37 lines
783 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
django,
|
|
pillow,
|
|
python-magic,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-versatileimagefield";
|
|
version = "3.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-M5DiAEgJjol78pmwNgdj0QzQiWZbeu+OupAO7Lrq0Ng=";
|
|
};
|
|
propagatedBuildInputs = [
|
|
pillow
|
|
python-magic
|
|
];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|