Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 55 lines 1.2 kB view raw
1{ 2 lib, fetchPypi, buildPythonPackage, isPy3k, 3 # runtime dependencies 4 pandas, numpy, requests, inflection, python-dateutil, six, more-itertools, 5 # test suite dependencies 6 nose, unittest2, flake8, httpretty, mock, jsondate, parameterized, faker, factory_boy, 7 # additional runtime dependencies are required on Python 2.x 8 pyOpenSSL ? null, ndg-httpsclient ? null, pyasn1 ? null 9}: 10 11buildPythonPackage rec { 12 pname = "quandl"; 13 version = "3.4.6"; 14 15 src = fetchPypi { 16 inherit version; 17 pname = "Quandl"; 18 sha256 = "15b58nj45bdax0aha6kwjz5pxj3bz8bs6ajwxqp9r89j13xxn94g"; 19 }; 20 21 doCheck = true; 22 23 checkInputs = [ 24 nose 25 unittest2 26 flake8 27 httpretty 28 mock 29 jsondate 30 parameterized 31 faker 32 factory_boy 33 ]; 34 35 propagatedBuildInputs = [ 36 pandas 37 numpy 38 requests 39 inflection 40 python-dateutil 41 six 42 more-itertools 43 ] ++ lib.optional (!isPy3k) [ 44 pyOpenSSL 45 ndg-httpsclient 46 pyasn1 47 ]; 48 49 meta = { 50 homepage = "https://github.com/quandl/quandl-python"; 51 description = "Quandl Python client library"; 52 maintainers = [ lib.maintainers.ilya-kolpakov ]; 53 license = lib.licenses.mit; 54 }; 55}