blob: 549a21ff2ddd74c9a133fa0c618e4423df66ba35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
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 = {
description = "Replaces django's ImageField with a more flexible interface";
homepage = "https://github.com/respondcreate/django-versatileimagefield/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mmai ];
};
}
|