diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1918012708e8..54ac6f06a85c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4197,6 +4197,24 @@ let }; }; + libthumbor = buildPythonPackage rec { + name = "libthumbor-${version}"; + version = "1.2.0"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/l/libthumbor/${name}.tar.gz"; + sha256 = "09bbaf08124ee33ea4ef99881625bd20450b0b43ab90fd678479beba8c03f86e"; + }; + + propagatedBuildInputs = with self; [ six pycrypto ]; + + meta = { + description = "libthumbor is the python extension to thumbor"; + homepage = http://github.com/heynemann/libthumbor; + license = licenses.mit; + }; + + }; lti = buildPythonPackage rec { version = "0.4.0"; name = "PyLTI-${version}"; @@ -4729,6 +4747,11 @@ let maintainers = with maintainers; [ garbas iElectric ]; platforms = platforms.all; }; + + # Failing tests + # https://github.com/Pylons/pyramid/issues/1899 + doCheck = !isPy35; + }; @@ -4771,11 +4794,12 @@ let pyramid_jinja2 = buildPythonPackage rec { - name = "pyramid_jinja2-1.9"; + name = "pyramid_jinja2-${version}"; + version = "2.5"; src = pkgs.fetchurl { - url = "http://pypi.python.org/packages/source/p/pyramid_jinja2/${name}.zip"; - md5 = "a6728117cad24749ddb39d2827cd9033"; + url = "http://pypi.python.org/packages/source/p/pyramid_jinja2/${name}.tar.gz"; + sha256 = "93c86e3103b454301f4d66640191aba047f2ab85ba75647aa18667b7448396bd"; }; buildInputs = with self; [ webtest ]; @@ -4993,18 +5017,28 @@ let statsd = buildPythonPackage rec { - name = "statsd-2.0.2"; + name = "statsd-${version}"; + version = "3.2.1"; src = pkgs.fetchurl { url = "http://pypi.python.org/packages/source/s/statsd/${name}.tar.gz"; - md5 = "476ef5b9004f6e2cb25c7da440bb53d0"; + sha256 = "3fa92bf0192af926f7a0d9be031fe3fd0fbaa1992d42cf2f07e68f76ac18288e"; }; - buildInputs = with self; [ ]; + buildInputs = with self; [ nose mock ]; meta = { maintainers = with maintainers; [ iElectric ]; + description = "A simple statsd client"; + license = licenses.mit; + homepage = https://github.com/jsocol/pystatsd; }; + + # Failing test: ERROR: statsd.tests.test_ipv6_resolution_udp + patchPhase = '' + sed -i '233,235d' statsd/tests.py + ''; + }; py3status = buildPythonPackage rec { @@ -10394,6 +10428,22 @@ let }; }; + pexif = buildPythonPackage rec { + name = "pexif-${version}"; + version = "0.15"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/p/pexif/pexif-0.15.tar.gz"; + sha256 = "45a3be037c7ba8b64bbfc48f3586402cc17de55bb9d7357ef2bc99954a18da3f"; + }; + + meta = { + description = "A module for editing JPEG EXIF data"; + homepage = http://www.benno.id.au/code/pexif/; + license = licenses.mit; + }; + }; + pexpect = buildPythonPackage rec { version = "3.3"; @@ -16778,6 +16828,9 @@ let license = licenses.zpt20; maintainers = with maintainers; [ goibhniu ]; }; + + # Python 3.5 is not yet supported. + disabled = isPy35; }; @@ -16857,19 +16910,6 @@ let }; }; - # Remove tornado 3.x once pythonPackages.thumbor is updated to 5.x - tornado_3 = buildPythonPackage rec { - name = "tornado-3.2.2"; - - propagatedBuildInputs = with self; [ backports_ssl_match_hostname_3_4_0_2 ]; - - src = pkgs.fetchurl { - url = "https://pypi.python.org/packages/source/t/tornado/${name}.tar.gz"; - sha256 = "13mq6nx98999zql8p2zlg4sj2hr2sxq9w11mqzi7rjfjs0z2sn8i"; - }; - - doCheck = false; - }; tornado = buildPythonPackage rec { name = "tornado-${version}"; version = "4.2.1"; @@ -18060,19 +18100,24 @@ let }; - thumbor = self.buildPythonPackage rec { - name = "thumbor-4.0.4"; + thumbor = buildPythonPackage rec { + name = "thumbor-${version}"; + version = "5.2.1"; + disabled = ! isPy27; + buildInputs = with self; [ statsd nose ]; + propagatedBuildInputs = with self; [ - # Remove pythonPackages.tornado 3.x once thumbor is updated to 5.x - tornado_3 + tornado pycrypto pycurl pillow derpconf python_magic - thumborPexif + # thumborPexif + pexif + libthumbor (pkgs.opencv.override { gtk = null; glib = null; @@ -18080,11 +18125,11 @@ let gstreamer = null; ffmpeg = null; }) - ]; + ] ++ optionals (!isPy3k) [ futures ]; src = pkgs.fetchurl { url = "https://pypi.python.org/packages/source/t/thumbor/${name}.tar.gz"; - md5 = "cf639a1cc57ee287b299ace450444408"; + sha256 = "57b0d7e261e792b2e2c53a79c3d8c722964003d1828331995dc3491dc67db7d8"; }; meta = {