at 23.05-pre 1.1 kB view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, flit-core 6, matplotlib 7, pytestCheckHook 8, numpy 9, pandas 10, pythonOlder 11, scipy 12}: 13 14buildPythonPackage rec { 15 pname = "seaborn"; 16 version = "0.12.1"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-ux6x1R0wlzaMGHw+8InAKI7B/oqhxp+zJMaKodAt9ME="; 24 }; 25 26 nativeBuildInputs = [ 27 flit-core 28 ]; 29 30 propagatedBuildInputs = [ 31 matplotlib 32 numpy 33 pandas 34 scipy 35 ]; 36 37 checkInputs = [ 38 pytestCheckHook 39 ]; 40 41 disabledTests = [ 42 # incompatible with matplotlib 3.5 43 "TestKDEPlotBivariate" 44 "TestBoxPlotter" 45 "TestCatPlot" 46 "TestKDEPlotUnivariate" 47 "test_with_rug" 48 "test_bivariate_kde_norm" 49 ] ++ lib.optionals (!stdenv.hostPlatform.isx86) [ 50 # overly strict float tolerances 51 "TestDendrogram" 52 ]; 53 54 pythonImportsCheck = [ 55 "seaborn" 56 ]; 57 58 meta = with lib; { 59 description = "Statistical data visualization"; 60 homepage = "https://seaborn.pydata.org/"; 61 license = with licenses; [ bsd3 ]; 62 maintainers = with maintainers; [ fridh ]; 63 }; 64}