4239726e0d
The current `thumbor` build on master: https://hydra.nixos.org/build/76000076
This is mainly caused by several dependency bumps (e.g.
`pythonPackages.tornado` to v5 in dd936ccdb9
)
that broke the `setup.py` from version 6.4.
Bumping to the latest stable version (6.5.1) fixes these issues.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ buildPythonPackage, stdenv, tornado, pycrypto, pycurl, pytz
|
|
, pillow, derpconf, python_magic, pexif, libthumbor, opencv, webcolors
|
|
, piexif, futures, statsd, thumborPexif, fetchPypi, isPy3k, lib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "thumbor";
|
|
version = "6.5.1";
|
|
|
|
disabled = isPy3k; # see https://github.com/thumbor/thumbor/issues/1004
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0yalqwpxb6m0dz2qfnyv1pqqd5dd020wl7hc0n0bvsvxg1ib9if0";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace "setup.py" \
|
|
--replace '"argparse",' "" ${lib.optionalString isPy3k ''--replace '"futures",' ""''}
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
tornado
|
|
pycrypto
|
|
pycurl
|
|
pytz
|
|
pillow
|
|
derpconf
|
|
python_magic
|
|
pexif
|
|
libthumbor
|
|
opencv
|
|
webcolors
|
|
piexif
|
|
statsd
|
|
] ++ lib.optionals (!isPy3k) [ futures thumborPexif ];
|
|
|
|
# disabled due to too many impure tests and issues with native modules in
|
|
# the pure testing environment. See https://github.com/NixOS/nixpkgs/pull/37147
|
|
# for further reference.
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A smart imaging service";
|
|
homepage = https://github.com/thumbor/thumbor/wiki;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ma27 ];
|
|
};
|
|
}
|