17 buildPythonPackage rec {
22 disabled = pythonOlder "3.8";
24 src = fetchFromGitHub {
27 rev = "refs/tags/v${version}";
28 hash = "sha256-aGIVcdG/XN999nYBHh3lJqGa3QVt0j8kmzaxdkULznY=";
31 nativeBuildInputs = [ flit-core ];
33 propagatedBuildInputs = [
39 optional-dependencies = {
53 # requires internet connection
54 "test_load_dataset_string_error"
56 ++ lib.optionals (!stdenv.hostPlatform.isx86) [
57 # overly strict float tolerances
61 # All platforms should use Agg. Let's set it explicitly to avoid probing GUI
62 # backends (leads to crashes on macOS).
63 env.MPLBACKEND = "Agg";
65 pythonImportsCheck = [ "seaborn" ];
68 description = "Statistical data visualization";
69 homepage = "https://seaborn.pydata.org/";
70 changelog = "https://github.com/mwaskom/seaborn/blob/master/doc/whatsnew/${src.rev}.rst";
71 license = with licenses; [ bsd3 ];