nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, django
4, fetchPypi
5, pillow
6, pytestCheckHook
7, pythonOlder
8, reportlab
9, svglib
10}:
11
12buildPythonPackage rec {
13 pname = "easy-thumbnails";
14 version = "2.8.1";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "1a283fe8a3569c3feab4605e8279929d75c85c1151b2fd627f95b1863b5fc6c2";
22 };
23
24 propagatedBuildInputs = [
25 django
26 pillow
27 svglib
28 reportlab
29 ];
30
31 # Tests require a Django instance which is setup
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "easy_thumbnails"
36 ];
37
38 meta = with lib; {
39 description = "Easy thumbnails for Django";
40 homepage = "https://github.com/SmileyChris/easy-thumbnails";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ ];
43 };
44}