git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #154718 from fabaff/fix-quandl

python310Packages.quandl: adjust inputs

commit49f09079d7cebd662d291c5537c0cfc2438c4ab8 authorFabian Affolter <fabian@affolter-engineering.ch> dateWed 12 Jan 2022, 12:05 (5 years ago) parentb54b12eac7b13f
1 file changed+35−25
pkgs/development/python-modules/quandl/default.nix+35−25
pkgs/development/python-modules/quandl/default.nix+35−25
@@ -1,16 +1,30 @@
1−{ lib, fetchPypi, buildPythonPackage, isPy3k, pythonOlder
2−# runtime dependencies
3−, pandas, numpy, requests, inflection, python-dateutil, six, more-itertools, importlib-metadata
4−# test suite dependencies
5−, nose, unittest2, flake8, httpretty, mock, jsondate, parameterized, faker, factory_boy
6−# additional runtime dependencies are required on Python 2.x
7−, pyopenssl, ndg-httpsclient, pyasn1
1+{ lib
2+, buildPythonPackage
3+, factory_boy
4+, faker
5+, fetchPypi
6+, httpretty
7+, importlib-metadata
8+, inflection
9+, jsondate
10+, mock
11+, more-itertools
12+, numpy
13+, pandas
14+, parameterized
15+, pytestCheckHook
16+, python-dateutil
17+, pythonOlder
18+, requests
19+, six
820}:
921
1022buildPythonPackage rec {
1123 pname = "quandl";
1224 version = "3.7.0";
13− disabled = !isPy3k;
25+ format = "setuptools";
26+
27+ disabled = pythonOlder "3.6";
1428
1529 src = fetchPypi {
1630 inherit version;
@@ -18,18 +32,6 @@ buildPythonPackage rec {
1832 sha256 = "6e0b82fbc7861610b3577c5397277c4220e065eee0fed4e46cd6b6021655b64c";
1933 };
2034
21− checkInputs = [
22− nose
23− unittest2
24− flake8
25− httpretty
26− mock
27− jsondate
28− parameterized
29− faker
30− factory_boy
31− ];
32−
3335 propagatedBuildInputs = [
3436 pandas
3537 numpy
@@ -38,15 +40,23 @@ buildPythonPackage rec {
3840 python-dateutil
3941 six
4042 more-itertools
41− ] ++ lib.optionals (!isPy3k) [
42− pyopenssl
43− ndg-httpsclient
44− pyasn1
4543 ] ++ lib.optionals (pythonOlder "3.8") [
4644 importlib-metadata
4745 ];
4846
49− pythonImportsCheck = [ "quandl" ];
47+ checkInputs = [
48+ factory_boy
49+ faker
50+ httpretty
51+ jsondate
52+ mock
53+ parameterized
54+ pytestCheckHook
55+ ];
56+
57+ pythonImportsCheck = [
58+ "quandl"
59+ ];
5060
5161 meta = with lib; {
5262 description = "Quandl Python client library";