1{ lib
2, buildPythonPackage
3, fetchPypi
4, django
5, six
6, pycrypto
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "libthumbor";
12 version = "2.0.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-1PsiFZrTDVQqy8A3nkaM5LdPiBoriRgHkklTOiczN+g=";
20 };
21
22 buildInputs = [
23 django
24 ];
25
26 propagatedBuildInputs = [
27 six
28 pycrypto
29 ];
30
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "libthumbor"
35 ];
36
37 meta = with lib; {
38 description = "Python extension to thumbor";
39 homepage = "https://github.com/heynemann/libthumbor";
40 license = licenses.mit;
41 maintainers = with maintainers; [ ];
42 };
43}