<commit_before>{ lib
, fetchPypi
, buildPythonPackage
, matplotlib
, scipy
, patsy
, pandas
, statsmodels
, pytestCheckHook
, geopandas
, mizani }:

buildPythonPackage rec {
  pname = "plotnine";
  version = "0.9.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-DompMBXzxx1oRKx6qfsNoJuQj199+n3V1opcoysuvOo=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace " --cov=plotnine --cov-report=xml" ""
  '';

  buildInputs = [
    matplotlib
    mizani
    pandas
    patsy
    scipy
    statsmodels
  ];

  checkInputs = [
    geopandas
    pytestCheckHook
  ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  pythonImportsCheck = [
    "plotnine"
  ];

  disabledTestPaths = [
    # Assertion Errors
    "tests/test_theme.py"
    "tests/test_scale_internals.py"
    "tests/test_scale_labelling.py"
    "tests/test_position.py"
    "tests/test_geom_text_label.py"
    "tests/test_geom_smooth.py"
    "tests/test_geom_segment.py"
    "tests/test_geom_ribbon_area.py"
    "tests/test_geom_map.py"
    "tests/test_facets.py"
    "tests/test_facet_labelling.py"
    "tests/test_coords.py"
    "tests/test_annotation_logticks.py"
  ];<commit_msg>python310Packages.plotnine: Add missing test dependencies<commit_after>{ lib
, fetchPypi
, buildPythonPackage
, matplotlib
, scipy
, patsy
, pandas
, statsmodels
, pytestCheckHook
, geopandas
, scikit-misc
, adjusttext
, mizani }:

buildPythonPackage rec {
  pname = "plotnine";
  version = "0.9.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "<KEY>;
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace " --cov=plotnine --cov-report=xml" ""
  '';

  buildInputs = [
    matplotlib
    mizani
    pandas
    patsy
    scipy
    statsmodels
  ];

  checkInputs = [
    adjusttext
    geopandas
    pytestCheckHook
    scikit-misc
  ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  pythonImportsCheck = [
    "plotnine"
  ];

  disabledTestPaths = [
    # Assertion Errors
    "tests/test_theme.py"
    "tests/test_scale_internals.py"
    "tests/test_scale_labelling.py"
    "tests/test_position.py"
    "tests/test_geom_text_label.py"
    "tests/test_geom_smooth.py"
    "tests/test_geom_segment.py"
    "tests/test_geom_ribbon_area.py"
    "tests/test_geom_map.py"
    "tests/test_facets.py"
    "tests/test_facet_labelling.py"
    "tests/test_coords.py"
    "tests/test_annotation_logticks.py"
  ];
{'fraction_non_alphanumeric': 0.11769513690232938, 'fraction_numerical': 0.01021659174499387, 'mean_word_length': 3.006546644844517, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6197425', 'n_tokens_mistral': 999, 'n_tokens_neox': 961, 'n_words': 134}