From 56fbdbca151fe0983b181fae9976e24177c7b82b Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Thu, 29 Nov 2018 08:56:40 -0500 Subject: [PATCH] pythonPackages.Quandl: 3.2.1 -> 3.4.5 --- .../python-modules/quandl/default.nix | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/quandl/default.nix b/pkgs/development/python-modules/quandl/default.nix index e85e9c4e0f8..598767e6ca9 100644 --- a/pkgs/development/python-modules/quandl/default.nix +++ b/pkgs/development/python-modules/quandl/default.nix @@ -1,27 +1,21 @@ { - lib, fetchFromGitHub, buildPythonPackage, isPy3k, + lib, fetchPypi, buildPythonPackage, isPy3k, # runtime dependencies pandas, numpy, requests, inflection, python-dateutil, six, more-itertools, # test suite dependencies - nose, unittest2, flake8, httpretty, mock, factory_boy, jsondate, + nose, unittest2, flake8, httpretty, mock, jsondate, parameterized, faker, factory_boy, # additional runtime dependencies are required on Python 2.x pyOpenSSL ? null, ndg-httpsclient ? null, pyasn1 ? null }: buildPythonPackage rec { pname = "quandl"; - version = "3.2.1"; - sha256 = "0vc0pzs2px9yaqkqcmd2m1b2bq1iils8fs0xbl0989hjq791a4jr"; + version = "3.4.5"; - patches = [ ./allow-requests-v2.18.patch ]; - - # Tests do not work with fetchPypi - src = fetchFromGitHub { - owner = pname; - repo = "quandl-python"; - rev = "refs/tags/v${version}"; - inherit sha256; - fetchSubmodules = true; # Fetching by tag does not work otherwise + src = fetchPypi { + inherit version; + pname = "Quandl"; + sha256 = "1rflyc6q3wa5ghc5v81yw79yg7lkpgd2c22mgbb0cvza724k53ys"; }; doCheck = true; @@ -32,8 +26,10 @@ buildPythonPackage rec { flake8 httpretty mock - factory_boy jsondate + parameterized + faker + factory_boy ]; propagatedBuildInputs = [