nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, buildPythonPackage
4, fetchPypi
5, matplotlib
6, pytestCheckHook
7, numpy
8, pandas
9, pythonOlder
10, scipy
11}:
12
13buildPythonPackage rec {
14 pname = "seaborn";
15 version = "0.11.2";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "cf45e9286d40826864be0e3c066f98536982baf701a7caa386511792d61ff4f6";
23 };
24
25 propagatedBuildInputs = [
26 matplotlib
27 numpy
28 pandas
29 scipy
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 ];
35
36 disabledTests = [
37 # incompatible with matplotlib 3.5
38 "TestKDEPlotBivariate"
39 "TestBoxPlotter"
40 "TestCatPlot"
41 "TestKDEPlotUnivariate"
42 "test_with_rug"
43 "test_bivariate_kde_norm"
44 ] ++ lib.optionals (!stdenv.hostPlatform.isx86) [
45 # overly strict float tolerances
46 "TestDendrogram"
47 ];
48
49 pythonImportsCheck = [
50 "seaborn"
51 ];
52
53 meta = with lib; {
54 description = "Statisitical data visualization";
55 homepage = "https://seaborn.pydata.org/";
56 license = with licenses; [ bsd3 ];
57 maintainers = with maintainers; [ fridh ];
58 };
59}