567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
781 B
Nix
38 lines
781 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 = {
|
|
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 ];
|
|
};
|
|
}
|