depot/third_party/nixpkgs/pkgs/development/python-modules/easy-thumbnails/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

45 lines
877 B
Nix

{ lib
, buildPythonPackage
, django
, fetchPypi
, pillow
, pytestCheckHook
, pythonOlder
, reportlab
, svglib
}:
buildPythonPackage rec {
pname = "easy-thumbnails";
version = "2.8.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-aqR3zg9zvtopOzTGMUo/K3jBtFzK6a2fqknjncfzQ2k=";
};
propagatedBuildInputs = [
django
pillow
svglib
reportlab
];
# Tests require a Django instance which is setup
doCheck = false;
pythonImportsCheck = [
"easy_thumbnails"
];
meta = with lib; {
description = "Easy thumbnails for Django";
homepage = "https://github.com/SmileyChris/easy-thumbnails";
changelog = "https://github.com/SmileyChris/easy-thumbnails/blob/${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}