summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/matplotlib-venn/default.nix
blob: 6f00a69f31967ed90b34928dbc05f461c6d6d338 (about) (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
49
{
  lib,
  stdenv,
  fetchPypi,
  buildPythonPackage,
  setuptools,
  matplotlib,
  numpy,
  scipy,
  shapely,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "matplotlib-venn";
  version = "1.1.2";

  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-bysHoD6btaYt4vMvllIWc54XUXb51lTdGeevLCLsNuM=";
  };

  build-system = [ setuptools ];

  dependencies = [
    matplotlib
    numpy
    scipy
    shapely
  ];

  disabledTests = [
    # See https://github.com/konstantint/matplotlib-venn/issues/85
    "matplotlib_venn.layout.venn3.cost_based.LayoutAlgorithm"
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Functions for plotting area-proportional two- and three-way Venn diagrams in matplotlib";
    homepage = "https://github.com/konstantint/matplotlib-venn";
    changelog = "https://github.com/konstantint/matplotlib-venn/releases/tag/${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ moraxyc ];
    broken = stdenv.hostPlatform.isDarwin; # https://github.com/konstantint/matplotlib-venn/issues/87
  };
}