Merge branch 'master' into staging

This commit is contained in:
Shea Levy
2018-03-20 08:38:28 -04:00
382 changed files with 9537 additions and 4559 deletions

View File

@@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi, nose }:
buildPythonPackage rec {
pname = "IPy";
version = "0.83";
src = fetchPypi {
inherit pname version;
sha256 = "61da5a532b159b387176f6eabf11946e7458b6df8fb8b91ff1d345ca7a6edab8";
};
checkInputs = [ nose ];
checkPhase = ''
nosetests -e fuzz
'';
meta = with stdenv.lib; {
description = "Class and tools for handling of IPv4 and IPv6 addresses and networks";
homepage = "https://github.com/autocracy/python-ipy";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ y0no ];
};
}

View File

@@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "ajpy";
version = "0.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "740e7daf728ba58dabaf4af2c4305262eb207a6e41791424a146a21396ceb9ad";
};
# ajpy doesn't have tests
doCheck = false;
meta = with stdenv.lib; {
description = "AJP package crafting library";
homepage = "https://github.com/hypn0s/AJPy/";
license = licenses.lgpl2;
maintainers = with maintainers; [ y0no ];
};
}

View File

@@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, six, pytest }:
buildPythonPackage rec {
pname = "allpairspy";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "9fb7962ee523bd96c5098cd3c97ac1b8eb73021d3df9314657ee9de00f52e034";
};
propagatedBuildInputs = [ six ];
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "Pairwise test combinations generator";
homepage = https://github.com/thombashi/allpairspy;
license = licenses.mit;
};
}

View File

@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "bleach";
version = "2.1.2";
version = "2.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "38fc8cbebea4e787d8db55d6f324820c7f74362b70db9142c1ac7920452d1a19";
sha256 = "eb7386f632349d10d9ce9d4a838b134d4731571851149f9cc2c05a9a837a9a44";
};
checkInputs = [ pytest pytestrunner ];
@@ -41,4 +41,4 @@ buildPythonPackage rec {
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ prikhi ];
};
}
}

View File

@@ -0,0 +1,21 @@
{ lib, buildPythonPackage, fetchPypi
, translationstring, iso8601 }:
buildPythonPackage rec {
pname = "colander";
version = "1.4";
src = fetchPypi {
inherit pname version;
sha256 = "e20e9acf190e5711cf96aa65a5405dac04b6e841028fc361d953a9923dbc4e72";
};
propagatedBuildInputs = [ translationstring iso8601 ];
meta = with lib; {
description = "A simple schema-based serialization and deserialization library";
homepage = https://docs.pylonsproject.org/projects/colander/en/latest/;
license = licenses.free; # http://repoze.org/LICENSE.txt
maintainers = with maintainers; [ garbas domenkozar ];
};
}

View File

@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, future }:
buildPythonPackage rec {
pname = "CommonMark";
version = "0.7.5";
src = fetchPypi {
inherit pname version;
sha256 = "4dfbbd1dbc669a9b71a015032b2bbe5c4b019ca8b6ca410d89cf7020de46d2c0";
};
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
# UnicodeEncodeError on Python 2
doCheck = isPy3k;
checkInputs = [ glibcLocales ];
propagatedBuildInputs = [ future ];
meta = with lib; {
description = "Python parser for the CommonMark Markdown spec";
homepage = https://github.com/rolandshoemaker/CommonMark-py;
license = licenses.bsd3;
};
}

View File

@@ -1,15 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi, cryptography, boto3, pyyaml, docutils }:
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, cryptography, boto3, pyyaml, docutils }:
buildPythonPackage rec {
pname = "credstash";
pname = "credstash";
version = "1.14.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "718b337f7a6fa001e014386071f05c59900525d0507009126d2fe8d75fe0761d";
};
patches = fetchpatch {
url = https://github.com/fugue/credstash/pull/178.patch;
sha256 = "15ih4h5v63g7qfmqdl4zca147wkcrx8vnsh4ns33001dipcfb5sc";
excludes = [ ".travis.yml" ];
};
propagatedBuildInputs = [ cryptography boto3 pyyaml docutils ];
# No tests in archive

View File

@@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage, fetchPypi, oracle-instantclient }:
buildPythonPackage rec {
pname = "cx_Oracle";
version = "6.1";
buildInputs = [
oracle-instantclient
];
src = fetchPypi {
inherit pname version;
sha256 = "80545fc7acbdda917dd2b1604c938141256bdfed3ad464a44586c9c2f09c3004";
};
# Check need an Oracle database to run
doCheck = false;
meta = with stdenv.lib; {
description = "Python interface to Oracle";
homepage = "https://oracle.github.io/python-cx_Oracle";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ y0no ];
};
}

View File

@@ -1,15 +1,24 @@
{ lib, fetchurl, buildPythonPackage, flake8, nose }:
{ lib, fetchPypi, buildPythonPackage, flake8, pycodestyle, pytestrunner, pytest }:
buildPythonPackage rec {
pname = "flake8-debugger";
name = "${pname}-${version}";
version = "3.1.0";
src = fetchurl {
url = "mirror://pypi/f/flake8-debugger/${name}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "be4fb88de3ee8f6dd5053a2d347e2c0a2b54bab6733a2280bb20ebd3c4ca1d97";
};
buildInputs = [ nose ];
propagatedBuildInputs = [ flake8 ];
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ flake8 pycodestyle ];
checkInputs = [ pytest ];
# Tests not included in PyPI tarball
# FIXME: Remove when https://github.com/JBKahn/flake8-debugger/pull/15 is merged
doCheck = false;
meta = {
homepage = https://github.com/jbkahn/flake8-debugger;
description = "ipdb/pdb statement checker plugin for flake8";

View File

@@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, requests }:
buildPythonPackage rec {
pname = "hvac";
version = "0.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "2c9308334301daee3b5c6d56a032ca2c81eeb97d2777b73d795e201e8d037687";
};
propagatedBuildInputs = [ requests ];
# Requires running a Vault server
doCheck = false;
meta = with lib; {
description = "HashiCorp Vault API client";
homepage = https://github.com/ianunruh/hvac;
license = licenses.asl20;
};
}

View File

@@ -1,12 +1,13 @@
{ stdenv, buildPythonPackage, fetchurl, python, pkgconfig, lxml, libvirt, nose }:
{ stdenv, buildPythonPackage, fetchgit, python, pkgconfig, lxml, libvirt, nose }:
buildPythonPackage rec {
pname = "libvirt";
version = "3.10.0";
version = "4.1.0";
src = assert version == libvirt.version; fetchurl {
url = "http://libvirt.org/sources/python/${pname}-python-${version}.tar.gz";
sha256 = "1l0fgqjnx76pzkhq540x9sf5fgzlrn0dpay90j2m4iq8nkclcbpw";
src = assert version == libvirt.version; fetchgit {
url = git://libvirt.org/libvirt-python.git;
rev = "v${version}";
sha256 = "0z87y6qr0ypdxfanphxl7yanisd7a0b0bwhg97kii68mig5dlw9r";
};
nativeBuildInputs = [ pkgconfig ];

View File

@@ -1,13 +1,16 @@
{ lib, buildPythonPackage, fetchurl, fetchpatch
{ lib, buildPythonPackage, fetchurl, fetchpatch, isPy3k
, pytest, werkzeug, pygments
}:
buildPythonPackage rec {
name = "moinmoin-${ver}";
ver = "1.9.9";
name = "moinmoin";
version = "1.9.9";
# SyntaxError in setup.py
disabled = isPy3k;
src = fetchurl {
url = "http://static.moinmo.in/files/moin-${ver}.tar.gz";
url = "http://static.moinmo.in/files/moin-${version}.tar.gz";
sha256 = "197ga41qghykmir80ik17f9hjpmixslv3zjgj7bj9qvs1dvdg5s3";
};

View File

@@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage, fetchPypi, libmysql }:
buildPythonPackage rec {
pname = "mysqlclient";
version = "1.3.12";
buildInputs = [
libmysql
];
# Tests need a MySQL database
doCheck = false;
src = fetchPypi {
inherit pname version;
sha256 = "2d9ec33de39f4d9c64ad7322ede0521d85829ce36a76f9dd3d6ab76a9c8648e5";
};
meta = with stdenv.lib; {
description = "Python interface to MySQL";
homepage = "https://github.com/PyMySQL/mysqlclient-python";
license = licenses.gpl1;
maintainers = with maintainers; [ y0no ];
};
}

View File

@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "neovim";
version = "0.2.3";
version = "0.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "989d720dc7636aa4260aa7774fa79aa524f51515b262eb8d7e9ba4336f758a99";
sha256 = "0accfgyvihs08bwapgakx6w93p4vbrq2448n2z6gw88m2hja9jm3";
};
checkInputs = [ nose ];

View File

@@ -2,7 +2,7 @@
buildPythonPackage rec {
pname = "netdisco";
version = "1.2.4";
version = "1.3.1";
disabled = !isPy3k;
@@ -11,13 +11,7 @@ buildPythonPackage rec {
owner = "home-assistant";
repo = pname;
rev = version;
sha256 = "170s9py8rw07cfgwvv7mf69g8jjg32m2rgw8x3kbvjqlmrdijxmm";
};
# Allow newer zeroconf versions
patches = fetchpatch {
url = "${meta.homepage}/commit/78f83046a2a0d77527274c8be9c3fd75737c19d0.patch";
sha256 = "098zkwqg9181vavw97yhi9rsdsf023gnapg4gkr1n0awz3f3l9nm";
sha256 = "082ihazpcmf7qh4671kgdr5kzglyj10gp9hyy52snh0c1rz468fd";
};
propagatedBuildInputs = [ requests zeroconf netifaces ];

View File

@@ -1,4 +1,5 @@
{ lib
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, nose
@@ -48,7 +49,11 @@ buildPythonPackage rec {
checkPhase = ''
runHook preCheck
mkdir tmp
HOME=tmp nosetests -v
HOME=tmp nosetests -v ${if (stdenv.isDarwin) then ''
--exclude test_delete \
--exclude test_checkpoints_follow_file
''
else ""}
'';
meta = {

View File

@@ -37,5 +37,8 @@ buildPythonPackage rec {
description = "Data migration utilities";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ fridh ];
# incomaptible with Networkx 2
# see https://github.com/blaze/odo/pull/601
broken = true;
};
}
}

View File

@@ -0,0 +1,23 @@
{ stdenv, buildPythonPackage, fetchPypi, nose }:
buildPythonPackage rec {
name = "${pname}-${version}";
version = "0.3.3";
pname = "ofxhome";
src = fetchPypi {
inherit pname version;
sha256 = "1rpyfqr2q9pnin47rjd4qapl8ngk1m9jx36iqckhdhr8s8gla445";
};
buildInputs = [ nose ];
# ImportError: No module named tests
doCheck = false;
meta = with stdenv.lib; {
homepage = "https://github.com/captin411/ofxhome";
description = "ofxhome.com financial institution lookup REST client";
license = licenses.mit;
};
}

View File

@@ -0,0 +1,29 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, bitcoinlib, GitPython, pysha3 }:
buildPythonPackage rec {
name = "opentimestamps-${version}";
version = "0.2.1";
disabled = (!isPy3k);
src = fetchFromGitHub {
owner = "opentimestamps";
repo = "python-opentimestamps";
rev = "python-opentimestamps-v0.2.1";
sha256 = "1cilv1ls9mdqk8zriqfkz7xcl8i1ncm0f89n4c8k4s82kf5y56rm";
};
# Remove a failing test which expects the test source file to reside in the
# project's Git repo
patchPhase = ''
rm opentimestamps/tests/core/test_git.py
'';
propagatedBuildInputs = [ bitcoinlib GitPython pysha3 ];
meta = {
description = "Create and verify OpenTimestamps proofs";
homepage = https://github.com/opentimestamps/python-opentimestamps;
license = lib.licenses.lgpl3;
};
}

View File

@@ -0,0 +1,40 @@
{ stdenv, buildPythonPackage, isPy3k, fetchPypi,
paramiko, pycurl, ajpy, pyopenssl, cx_oracle, mysqlclient,
psycopg2, pycrypto, dnspython, ipy, pysnmp, pyasn1 }:
buildPythonPackage rec {
pname = "patator";
version = "0.7";
disabled = !(isPy3k);
src = fetchPypi {
inherit pname version;
sha256 = "335e432e6cc591437e316ba8c1da935484ca39fc79e595ccf60ccd9166e965f1";
};
propagatedBuildInputs = [
paramiko
pycurl
ajpy
pyopenssl
cx_oracle
mysqlclient
psycopg2
pycrypto
dnspython
ipy
pysnmp
pyasn1
];
# No tests provided by patator
doCheck = false;
meta = with stdenv.lib; {
description = "multi-purpose brute-forcer";
homepage = "https://github.com/lanjelot/patator";
license = licenses.gpl2;
maintainers = with maintainers; [ y0no ];
};
}

View File

@@ -0,0 +1,20 @@
{ buildPythonPackage, fetchPypi
, requests, six, pyopenssl }:
buildPythonPackage rec {
pname = "paypalrestsdk";
version = "1.13.1";
src = fetchPypi {
inherit pname version;
sha256 = "238713208031e8981bf70b3350b3d7f85ed64d34e0f21e4c1184444a546fee7f";
};
propagatedBuildInputs = [ requests six pyopenssl ];
meta = {
homepage = https://developer.paypal.com/;
description = "Python APIs to create, process and manage payment";
license = "PayPal SDK License";
};
}

View File

@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi
, requests, websocket_client, python_magic
, pytest, mock }:
buildPythonPackage rec {
pname = "pushbullet.py";
version = "0.11.0";
src = fetchPypi {
inherit pname version;
sha256 = "aa9dc7bb46e083e3497d46241154f12944a8f540e29d150330ca94db0b453b8d";
};
propagatedBuildInputs = [ requests websocket_client python_magic ];
checkInputs = [ pytest mock ];
checkPhase = ''
PUSHBULLET_API_KEY="" py.test -k "not test_e2e and not test_auth"
'';
meta = with lib; {
description = "A simple python client for pushbullet.com";
homepage = https://github.com/randomchars/pushbullet.py;
license = licenses.mit;
};
}

View File

@@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi
, requests }:
buildPythonPackage rec {
pname = "python-pushover";
version = "0.3";
src = fetchPypi {
inherit pname version;
sha256 = "0xlghiqd9rsgn7jdhc8v1xh3xspssihrw1vyy85gvjzxa1ah19sk";
};
propagatedBuildInputs = [ requests ];
# tests require network
doCheck = false;
meta = with stdenv.lib; {
description = "Bindings and command line utility for the Pushover notification service";
homepage = https://github.com/Thibauth/python-pushover;
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@@ -1,10 +1,12 @@
{ stdenv, fetchPypi, buildPythonPackage, defusedxml }:
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, defusedxml }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "PyAMF";
version = "0.8.0";
# according to setup.py
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1r3lp9gkph48g9lijby5rs5daa3lhxs204r14zw4kvp3hf4xcm84";

View File

@@ -24,7 +24,13 @@ buildPythonPackage rec {
checkInputs = [ bottle pytest nose flaky ];
checkPhase = ''
py.test -k "not test_ssl_in_static_libs and not ssh_key_cb_test" tests
py.test -k "not ssh_key_cb_test \
and not test_libcurl_ssl_gnutls \
and not test_libcurl_ssl_nss \
and not test_libcurl_ssl_openssl \
and not test_libcurl_ssl_unrecognized \
and not test_request_with_verifypeer \
and not test_ssl_in_static_libs" tests
'';
preConfigure = ''

View File

@@ -14,6 +14,9 @@ buildPythonPackage rec {
sha256 = "1g181x2mrhxcaswr6vi2m7if97wv4rf2g2pny60334sciga8njfz";
};
# Unreliable timing: https://github.com/danielperna84/pyhomematic/issues/126
doCheck = false;
meta = with stdenv.lib; {
description = "Python 3 Interface to interact with Homematic devices";
homepage = https://github.com/danielperna84/pyhomematic;

View File

@@ -0,0 +1,19 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder }:
buildPythonPackage rec {
pname = "pysha3";
version = "1.0.2";
name = "${pname}-${version}";
disabled = pythonOlder "2.7";
src = fetchPypi {
inherit pname version;
sha256 = "17kkjapv6sr906ib0r5wpldmzw7scza08kv241r98vffy9rqx67y";
};
meta = {
description = "Backport of hashlib.sha3 for 2.7 to 3.5";
homepage = https://github.com/tiran/pysha3;
license = lib.licenses.psfl;
};
}

View File

@@ -2,14 +2,13 @@
buildPythonPackage rec {
pname = "pyslurm";
version = "20171102";
name = pname + "-" + version;
version = "20170302";
src = fetchFromGitHub {
repo = "pyslurm";
owner = "PySlurm";
rev = "a2acbc820da419e308c5817998d2abe78a7b75e6";
sha256 = "1wmlx5fh1xzjyksvmq7i083hmyvs7id61ysk2d9hbmf8rza498as";
rev = "f5a756f199da404ec73cb7fcd7f04ec4d21ea3ff";
sha256 = "1xn321nc8i8zmngh537j6lnng1rhdp460qx4skvh9daz5h9nxznx";
};
buildInputs = [ cython slurm ];

View File

@@ -0,0 +1,17 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "python-ctags3";
version = "1.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "62e1d48a8cd88756767f3f5e3f1b1a81bc84deeb736f0c9480a5b5d066f63c3e";
};
meta = with lib; {
description = "Ctags indexing python bindings";
homepage = https://github.com/jonashaag/python-ctags3;
license = licenses.lgpl3Plus;
};
}

View File

@@ -2,6 +2,7 @@
, buildPythonPackage
, fetchPypi
, pytest
, CommonMark
, bleach
, docutils
, pygments
@@ -10,18 +11,17 @@
buildPythonPackage rec {
pname = "readme_renderer";
version = "17.2";
name = "${pname}-${version}";
version = "17.4";
src = fetchPypi {
inherit pname version;
sha256 = "9deab442963a63a71ab494bf581b1c844473995a2357f4b3228a1df1c8cba8da";
sha256 = "82d68175feec897af2a38fe8590778f14c3be5324cc62e3ce5752a9b1e4b60ab";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [
bleach docutils pygments six
CommonMark bleach docutils pygments six
];
checkPhase = ''
@@ -33,4 +33,4 @@ buildPythonPackage rec {
homepage = https://github.com/pypa/readme_renderer;
license = lib.licenses.asl20;
};
}
}

View File

@@ -0,0 +1,28 @@
{ lib, buildPythonPackage, fetchPypi
, pbr, requests
, pytest, pytestpep8, waitress }:
buildPythonPackage rec {
pname = "requests-unixsocket";
version = "0.1.5";
src = fetchPypi {
inherit pname version;
sha256 = "0k19knydh0fzd7w12lfy18arl1ndwa0zln33vsb37yv1iw9w06x9";
};
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ requests ];
checkInputs = [ pytest pytestpep8 waitress ];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "Use requests to talk HTTP via a UNIX domain socket";
homepage = https://github.com/msabramo/requests-unixsocket;
license = licenses.asl20;
maintainers = [ maintainers.catern ];
};
}

View File

@@ -1,16 +1,15 @@
{ stdenv, fetchurl, buildPythonPackage, pyparsing, argparse, robotframework }:
{ stdenv, fetchPypi, buildPythonPackage, pyparsing, argparse, robotframework, allpairspy }:
buildPythonPackage rec {
pname = "robomachine";
pname = "RoboMachine";
version = "0.8.0";
name = pname + "-" + version;
src = fetchurl {
url = "mirror://pypi/R/RoboMachine/RoboMachine-0.6.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "242cfd9be0f7591138eaeba03c9c190f894ce045e1767ab7b90eca330259fc45";
};
propagatedBuildInputs = [ pyparsing argparse robotframework ];
propagatedBuildInputs = [ pyparsing argparse robotframework allpairspy ];
# Remove Windows .bat files
postInstall = ''

View File

@@ -21,8 +21,9 @@ buildPythonPackage rec {
LC_ALL="en_US.UTF-8";
# Disable doctests on OSX: https://github.com/scikit-learn/scikit-learn/issues/10213
# Disable doctests everywhere: https://github.com/NixOS/nixpkgs/issues/35436
checkPhase = ''
HOME=$TMPDIR OMP_NUM_THREADS=1 nosetests ${stdenv.lib.optionalString stdenv.isDarwin "--doctest-options=+SKIP"} $out/${python.sitePackages}/sklearn/
HOME=$TMPDIR OMP_NUM_THREADS=1 nosetests --doctest-options=+SKIP $out/${python.sitePackages}/sklearn/
'';
meta = with stdenv.lib; {

View File

@@ -0,0 +1,17 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "svg.path";
version = "2.2";
src = fetchPypi {
inherit pname version;
sha256 = "08kp03i4yiqdkz7a7l7d7kzszahmhigrml2502zi1ybndrh7ayxw";
};
meta = with stdenv.lib; {
description = "SVG path objects and parser";
homepage = https://github.com/regebro/svg.path;
license = licenses.mit;
maintainers = with maintainers; [ goibhniu ];
};
}

View File

@@ -0,0 +1,56 @@
{ buildPythonPackage, stdenv, tornado, pycrypto, pycurl, pytz
, pillow, derpconf, python_magic, pexif, libthumbor, opencv, webcolors
, piexif, futures, statsd, thumborPexif, fetchPypi, fetchpatch, isPy3k, lib
}:
buildPythonPackage rec {
pname = "thumbor";
version = "6.4.2";
disabled = isPy3k; # see https://github.com/thumbor/thumbor/issues/1004
src = fetchPypi {
inherit pname version;
sha256 = "0y9mf78j80vjh4y0xvgnybc1wqfcwm5s19xhsfgkn12hh8pmh14d";
};
patches = [
(fetchpatch {
url = "https://github.com/thumbor/thumbor/commit/4f2bc99451409e404f7fa0f3e4a3bdaea7b49869.patch";
sha256 = "0qqw1n1pfd8f8cn168718gzwf4b35j2j9ajyw643xpf92s0iq2cc";
})
];
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 ];
};
}