<commit_before>{ lib
, fetchFromGitHub
, buildPythonPackage
, numpy
, scipy
, autograd
, nose2
}:

buildPythonPackage rec {
  pname = "pymanopt";
  version = "0.2.5";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = version;
    sha256 = "0zk775v281375sangc5qkwrkb8yc9wx1g8b1917s4s8wszzkp8k6";
  };

  propagatedBuildInputs = [ numpy scipy ];
  checkInputs = [ nose2 autograd ];

  checkPhase = ''
    # nose2 doesn't properly support excludes
    rm tests/test_{problem,tensorflow,theano}.py

    nose2 tests -v
  '';
<commit_msg>python3Packages.pymanopt: 0.2.5 -> 2.0.0<commit_after>{ lib
, fetchFromGitHub
, buildPythonPackage
, numpy
, scipy
, autograd
, nose2
}:

buildPythonPackage rec {
  pname = "pymanopt";
  version = "2.0.0";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "refs/tags/${version}";
    sha256 = "sha256-dqyduExNgXIbEFlgkckaPfhLFSVLqPgwAOyBUdowwiQ=";
  };

  propagatedBuildInputs = [ numpy scipy ];
  checkInputs = [ nose2 autograd ];

  checkPhase = ''
    # nose2 doesn't properly support excludes
    rm tests/test_{problem,tensorflow,theano}.py

    nose2 tests -v
  '';

{'fraction_non_alphanumeric': 0.11882046834345186, 'fraction_numerical': 0.04596704249783174, 'mean_word_length': 3.490272373540856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4259112', 'n_tokens_mistral': 486, 'n_tokens_neox': 449, 'n_words': 84}