uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
82
pkgs/development/python-modules/qiskit-finance/default.nix
Normal file
82
pkgs/development/python-modules/qiskit-finance/default.nix
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
{ 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.1";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "qiskit";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-wnto3IqrJFAqIv6QAXe3BB9fvXQXe2fw/iUZe3+198M=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt --replace "pandas<1.4.0" "pandas"
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue