pythonPackages.quandl: init at 3.2.1
This commit is contained in:
parent
741d9c8c2d
commit
e15c715daf
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -18,7 +18,7 @@ from version import VERSION # NOQA
|
||||||
|
install_requires = [
|
||||||
|
'pandas >= 0.14',
|
||||||
|
'numpy >= 1.8',
|
||||||
|
- 'requests >= 2.7.0, < 2.18', # Version 2.18 appears to break pulling data.
|
||||||
|
+ 'requests >= 2.7.0', # Works fine
|
||||||
|
'inflection >= 0.3.1',
|
||||||
|
'python-dateutil',
|
||||||
|
'six',
|
61
pkgs/development/python-modules/quandl/default.nix
Normal file
61
pkgs/development/python-modules/quandl/default.nix
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
lib, fetchFromGitHub, buildPythonPackage, isPy3k,
|
||||||
|
# runtime dependencies
|
||||||
|
pandas, numpy, requests, inflection, python-dateutil, six, more-itertools,
|
||||||
|
# test suite dependencies
|
||||||
|
nose, unittest2, flake8, httpretty, mock, factory_boy, jsondate,
|
||||||
|
# additional runtime dependencies are required on Python 2.x
|
||||||
|
pyOpenSSL ? null, ndg-httpsclient ? null, pyasn1 ? null
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "3.2.1";
|
||||||
|
sha256 = "0vc0pzs2px9yaqkqcmd2m1b2bq1iils8fs0xbl0989hjq791a4jr";
|
||||||
|
|
||||||
|
in buildPythonPackage rec {
|
||||||
|
pname = "quandl";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
patches = [ ./allow-requests-v2.18.patch ];
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "quandl";
|
||||||
|
repo = "quandl-python";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
inherit sha256;
|
||||||
|
fetchSubmodules = true; # Fetching by tag does not work otherwise
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
nose
|
||||||
|
unittest2
|
||||||
|
flake8
|
||||||
|
httpretty
|
||||||
|
mock
|
||||||
|
factory_boy
|
||||||
|
jsondate
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pandas
|
||||||
|
numpy
|
||||||
|
requests
|
||||||
|
inflection
|
||||||
|
python-dateutil
|
||||||
|
six
|
||||||
|
more-itertools
|
||||||
|
] ++ lib.optional (!isPy3k) [
|
||||||
|
pyOpenSSL
|
||||||
|
ndg-httpsclient
|
||||||
|
pyasn1
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://github.com/quandl/quandl-python";
|
||||||
|
description = "Quandl Python client library";
|
||||||
|
maintainers = [ lib.maintainers.ilya-kolpakov ];
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
@ -24440,6 +24440,7 @@ EOF
|
|||||||
|
|
||||||
inflection = callPackage ../development/python-modules/inflection { };
|
inflection = callPackage ../development/python-modules/inflection { };
|
||||||
|
|
||||||
|
quandl = callPackage ../development/python-modules/quandl { };
|
||||||
});
|
});
|
||||||
|
|
||||||
in fix' (extends overrides packages)
|
in fix' (extends overrides packages)
|
||||||
|
Loading…
Reference in New Issue
Block a user