65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, flit-core
|
|
, matplotlib
|
|
, pytestCheckHook
|
|
, numpy
|
|
, pandas
|
|
, pythonOlder
|
|
, scipy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "seaborn";
|
|
version = "0.12.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-iT8XKS2LrKYWwVeN21jrJcctYi9U/F7jKcggfcm1eyM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
numpy
|
|
pandas
|
|
scipy
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# incompatible with matplotlib 3.5
|
|
"TestKDEPlotBivariate"
|
|
"TestBoxPlotter"
|
|
"TestCatPlot"
|
|
"TestKDEPlotUnivariate"
|
|
"test_with_rug"
|
|
"test_bivariate_kde_norm"
|
|
] ++ lib.optionals (!stdenv.hostPlatform.isx86) [
|
|
# overly strict float tolerances
|
|
"TestDendrogram"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"seaborn"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Statisitical data visualization";
|
|
homepage = "https://seaborn.pydata.org/";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fridh ];
|
|
};
|
|
}
|