Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ 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 ]; };}