tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.qiskit-finance: init at 0.2.1
Drew Risinger
4 years ago
df2faa22
acf4b64a
+81
-1
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
qiskit-finance
default.nix
top-level
python-packages.nix
+78
pkgs/development/python-modules/qiskit-finance/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib
2
+
, pythonOlder
3
+
, buildPythonPackage
4
+
, fetchFromGitHub
5
+
# Python Inputs
6
+
, fastdtw
7
+
, numpy
8
+
, pandas
9
+
, psutil
10
+
, qiskit-terra
11
+
, qiskit-optimization
12
+
, scikit-learn
13
+
, scipy
14
+
, quandl
15
+
, yfinance
16
+
# Check Inputs
17
+
, pytestCheckHook
18
+
, ddt
19
+
, pytest-timeout
20
+
, qiskit-aer
21
+
}:
22
+
23
+
buildPythonPackage rec {
24
+
pname = "qiskit-finance";
25
+
version = "0.2.1";
26
+
27
+
disabled = pythonOlder "3.6";
28
+
29
+
src = fetchFromGitHub {
30
+
owner = "qiskit";
31
+
repo = pname;
32
+
rev = version;
33
+
sha256 = "sha256-fEhc/01j6iYYwS6mLle+TpX9j0DVn12oPUFamEecoAY=";
34
+
};
35
+
36
+
propagatedBuildInputs = [
37
+
fastdtw
38
+
numpy
39
+
pandas
40
+
psutil
41
+
qiskit-terra
42
+
qiskit-optimization
43
+
quandl
44
+
scikit-learn
45
+
scipy
46
+
yfinance
47
+
];
48
+
49
+
checkInputs = [
50
+
pytestCheckHook
51
+
pytest-timeout
52
+
ddt
53
+
qiskit-aer
54
+
];
55
+
56
+
pythonImportsCheck = [ "qiskit_finance" ];
57
+
disabledTests = [
58
+
# Fail due to approximation error, ~1-2%
59
+
"test_application"
60
+
61
+
# Tests fail b/c require internet connection. Stalls tests if enabled.
62
+
"test_exchangedata"
63
+
"test_yahoo"
64
+
"test_wikipedia"
65
+
];
66
+
pytestFlagsArray = [
67
+
"--durations=10"
68
+
];
69
+
70
+
meta = with lib; {
71
+
description = "Software for developing quantum computing programs";
72
+
homepage = "https://qiskit.org";
73
+
downloadPage = "https://github.com/QISKit/qiskit-optimization/releases";
74
+
changelog = "https://qiskit.org/documentation/release_notes.html";
75
+
license = licenses.asl20;
76
+
maintainers = with maintainers; [ drewrisinger ];
77
+
};
78
+
}
+3
-1
pkgs/top-level/python-packages.nix
···
7901
7902
qimage2ndarray = callPackage ../development/python-modules/qimage2ndarray { };
7903
0
0
7904
qiskit-aer = callPackage ../development/python-modules/qiskit-aer { };
7905
7906
qiskit-aqua = callPackage ../development/python-modules/qiskit-aqua { };
7907
7908
-
qiskit = callPackage ../development/python-modules/qiskit { };
7909
7910
qiskit-ibmq-provider = callPackage ../development/python-modules/qiskit-ibmq-provider { };
7911
···
7901
7902
qimage2ndarray = callPackage ../development/python-modules/qimage2ndarray { };
7903
7904
+
qiskit = callPackage ../development/python-modules/qiskit { };
7905
+
7906
qiskit-aer = callPackage ../development/python-modules/qiskit-aer { };
7907
7908
qiskit-aqua = callPackage ../development/python-modules/qiskit-aqua { };
7909
7910
+
qiskit-finance = callPackage ../development/python-modules/qiskit-finance { };
7911
7912
qiskit-ibmq-provider = callPackage ../development/python-modules/qiskit-ibmq-provider { };
7913