mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 10:44:36 +00:00
https://github.com/kernc/backtesting.py/blob/0.6.6/CHANGELOG.md This commit was automatically generated using update-python-libraries.
49 lines
886 B
Nix
49 lines
886 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
setuptools-scm,
|
|
numpy,
|
|
pandas,
|
|
bokeh,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "backtesting";
|
|
version = "0.6.6";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-hErxHJYfoPR7/dsEtEhBb5OwK3Mfqt+j34uYpECB/Qs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail "'setuptools_git'," ""
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
pandas
|
|
bokeh
|
|
];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Backtest trading strategies in Python";
|
|
homepage = "https://kernc.github.io/backtesting.py/";
|
|
changelog = "https://github.com/kernc/backtesting.py/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ appleboblin ];
|
|
};
|
|
}
|