1{ lib, buildPythonPackage, fetchPypi, matplotlib, pandas }:
2
3buildPythonPackage rec {
4 pname = "mplfinance";
5 version = "0.12.7a7";
6
7 src = fetchPypi {
8 inherit pname version;
9 hash = "sha256-pATiprTELt8GrEkeKjILPfpdNDVoex5t+Mc+6Gg7cPY=";
10 };
11
12 propagatedBuildInputs = [ matplotlib pandas ];
13
14 # tests are only included on GitHub where this version misses a tag
15 # and half of them fail
16 doCheck = false;
17
18 pythonImportsCheck = [ "mplfinance" ];
19
20 meta = with lib; {
21 description = "Matplotlib utilities for the visualization, and visual analysis, of financial data";
22 homepage = "https://github.com/matplotlib/mplfinance";
23 license = [ licenses.bsd3 ];
24 maintainers = [ maintainers.ehmry ];
25 };
26}