mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
0215034f25
when they already rely on SRI hashes.
34 lines
741 B
Nix
34 lines
741 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, django
|
|
, pillow
|
|
, python-magic
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-versatileimagefield";
|
|
version = "3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-FlHbLtNthDz7F4jyYBRyopPZuoZyk2m29uVZERI1esc=";
|
|
};
|
|
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 ];
|
|
};
|
|
}
|
|
|