nixpkgs/pkgs/development/python-modules/django-versatileimagefield/default.nix
Evan Stoll 510c52e16c pythonPackages.django-versatileimagefield: add python_magic dep
add python_magic to propagatedBuildInputs to allow
django-versatileimagefield package to build
2020-06-05 14:52:01 -07:00

32 lines
719 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, django
, python
, pillow
, python_magic
}:
buildPythonPackage rec {
pname = "django-versatileimagefield";
version = "1.11";
src = fetchPypi {
inherit pname version;
sha256 = "8322ee9d7bf5ffa5360990320d2cc2efc7017feff35422636d49f625721edf82";
};
propagatedBuildInputs = [ pillow python_magic ];
checkInputs = [ django ];
# tests not included with pypi release
doCheck = false;
meta = with stdenv.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 ];
};
}