blob: 3a14296d4fd29ae9c57abf0f7509cc55b4be445d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
numpy,
pandas,
bokeh,
}:
buildPythonPackage rec {
pname = "backtesting";
version = "0.6.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-c4od7ij8U98u2jXqLy0aHDfdugHfFCI/yeh9gKHvvC4=";
};
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 ];
};
}
|