1{
2 lib,
3 stdenv,
4 fetchPypi,
5 buildPythonPackage,
6 setuptools,
7 matplotlib,
8 numpy,
9 scipy,
10 shapely,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "matplotlib-venn";
16 version = "1.1.2";
17
18 pyproject = true;
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-bysHoD6btaYt4vMvllIWc54XUXb51lTdGeevLCLsNuM=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 matplotlib
29 numpy
30 scipy
31 shapely
32 ];
33
34 disabledTests = [
35 # See https://github.com/konstantint/matplotlib-venn/issues/85
36 "matplotlib_venn.layout.venn3.cost_based.LayoutAlgorithm"
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 meta = {
42 description = "Functions for plotting area-proportional two- and three-way Venn diagrams in matplotlib";
43 homepage = "https://github.com/konstantint/matplotlib-venn";
44 changelog = "https://github.com/konstantint/matplotlib-venn/releases/tag/${version}";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ moraxyc ];
47 broken = stdenv.hostPlatform.isDarwin; # https://github.com/konstantint/matplotlib-venn/issues/87
48 };
49}