Files
nixpkgs/pkgs/development/python-modules/backtesting/default.nix
Fabian Affolter 11392a43ac python3Packages.backtesting: 0.6.5 -> 0.6.6
https://github.com/kernc/backtesting.py/blob/0.6.6/CHANGELOG.md

This commit was automatically generated using update-python-libraries.
2026-08-25 01:24:09 +02:00

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 ];
};
}