Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / qiskit-finance / default.nix
blob62584bb17165f78c640be4ffa8a23e1c6b3f3835
1 { lib
2 , pythonOlder
3 , buildPythonPackage
4 , fetchFromGitHub
6 # build-system
7 , setuptools
9   # Python Inputs
10 , fastdtw
11 , numpy
12 , pandas
13 , psutil
14 , qiskit-terra
15 , qiskit-optimization
16 , scikit-learn
17 , scipy
18 , quandl
19 , yfinance
20   # Check Inputs
21 , pytestCheckHook
22 , ddt
23 , pytest-timeout
24 , qiskit-aer
27 buildPythonPackage rec {
28   pname = "qiskit-finance";
29   version = "0.4.1";
30   pyproject = true;
32   disabled = pythonOlder "3.6";
34   src = fetchFromGitHub {
35     owner = "qiskit";
36     repo = pname;
37     rev = "refs/tags/${version}";
38     hash = "sha256-zYhYhojCzlENzgYSenwewjeVHUBX2X6eQbbzc9znBsk=";
39   };
41   postPatch = ''
42     substituteInPlace requirements.txt --replace "pandas<1.4.0" "pandas"
43   '';
45   nativeBuildInputs = [
46     setuptools
47   ];
49   propagatedBuildInputs = [
50     fastdtw
51     numpy
52     pandas
53     psutil
54     qiskit-terra
55     qiskit-optimization
56     quandl
57     scikit-learn
58     scipy
59     yfinance
60   ];
62   nativeCheckInputs = [
63     pytestCheckHook
64     pytest-timeout
65     ddt
66     qiskit-aer
67   ];
69   pythonImportsCheck = [ "qiskit_finance" ];
70   disabledTests = [
71     # Fail due to approximation error, ~1-2%
72     "test_application"
74     # Tests fail b/c require internet connection. Stalls tests if enabled.
75     "test_exchangedata"
76     "test_yahoo"
77     "test_wikipedia"
78   ];
79   pytestFlagsArray = [
80     "--durations=10"
81   ];
83   meta = with lib; {
84     description = "Software for developing quantum computing programs";
85     homepage = "https://qiskit.org";
86     downloadPage = "https://github.com/QISKit/qiskit-optimization/releases";
87     changelog = "https://qiskit.org/documentation/release_notes.html";
88     license = licenses.asl20;
89     maintainers = with maintainers; [ drewrisinger ];
90   };