summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/mplfinance/default.nix
blob: 26f55b5a4fa49af72fdfff7a7cf33b03a84a13f4 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  matplotlib,
  pandas,
}:

buildPythonPackage rec {
  pname = "mplfinance";
  version = "0.12.10b0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-faFQtYUapRGa1uBrVeSDOLYZu2dz8bhd9d5npf/ZF78=";
  };

  propagatedBuildInputs = [
    matplotlib
    pandas
  ];

  # tests are only included on GitHub where this version misses a tag
  # and half of them fail
  doCheck = false;

  pythonImportsCheck = [ "mplfinance" ];

  meta = {
    description = "Matplotlib utilities for the visualization, and visual analysis, of financial data";
    homepage = "https://github.com/matplotlib/mplfinance";
    license = [ lib.licenses.bsd3 ];
  };
}