depot/third_party/nixpkgs/pkgs/development/python-modules/django-versatileimagefield/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

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 ];
};
}