nixpkgs/pkgs/development/python-modules/qiskit-finance/default.nix
2022-01-23 01:09:21 +01:00

79 lines
1.5 KiB
Nix

{ lib
, pythonOlder
, buildPythonPackage
, fetchFromGitHub
# Python Inputs
, fastdtw
, numpy
, pandas
, psutil
, qiskit-terra
, qiskit-optimization
, scikit-learn
, scipy
, quandl
, yfinance
# Check Inputs
, pytestCheckHook
, ddt
, pytest-timeout
, qiskit-aer
}:
buildPythonPackage rec {
pname = "qiskit-finance";
version = "0.3.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "qiskit";
repo = pname;
rev = version;
sha256 = "1wpx519apnpp25yiq20warg4q8yv09x8fk0m8b9kyp199x86iffp";
};
propagatedBuildInputs = [
fastdtw
numpy
pandas
psutil
qiskit-terra
qiskit-optimization
quandl
scikit-learn
scipy
yfinance
];
checkInputs = [
pytestCheckHook
pytest-timeout
ddt
qiskit-aer
];
pythonImportsCheck = [ "qiskit_finance" ];
disabledTests = [
# Fail due to approximation error, ~1-2%
"test_application"
# Tests fail b/c require internet connection. Stalls tests if enabled.
"test_exchangedata"
"test_yahoo"
"test_wikipedia"
];
pytestFlagsArray = [
"--durations=10"
];
meta = with lib; {
description = "Software for developing quantum computing programs";
homepage = "https://qiskit.org";
downloadPage = "https://github.com/QISKit/qiskit-optimization/releases";
changelog = "https://qiskit.org/documentation/release_notes.html";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}