Commit ead6df9f authored by Hugo Herter's avatar Hugo Herter
Browse files

python3Packages.thinc: 9.1.1 -> 8.3.6

Package python3Packages.spacy depends on
`thinc<8.4.0`, but python3Packages.thinc refers to
 version 9.1.1 and this breaks the `spacy` package.

Some dependency issues were fixed since the last
8.x.x release of thinc in nixpkgs, making this
a simple version switch.

The package python3Packages.spacy appears to be
the only dependent on python3Packages.thinc:

```shell
grep -rl 'thinc' pkgs/
pkgs/applications/editors/vim/plugins/generated.nix
pkgs/applications/editors/vim/plugins/vim-plugin-names
pkgs/development/python-modules/spacy/default.nix
pkgs/development/python-modules/thinc/default.nix
pkgs/top-level/python-packages.nix
```

Related to:
https://github.com/NixOS/nixpkgs/issues/402089
parent 98cb565d
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  catalogue,
  confection,
  cymem,
  cython_0,
  cython,
  fetchPypi,
  hypothesis,
  mock,
@@ -22,23 +22,18 @@

buildPythonPackage rec {
  pname = "thinc";
  version = "9.1.1";
  version = "8.3.6";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-IfrimG13d6bwULkEbcnqsRhS8cmpl9zJAy8+zCJ4Sko=";
    hash = "sha256-SZg/m33cQ0OpUyaUqRGN0hbXpgBSCiGEmkO2wmjsbK0=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml setup.cfg \
      --replace-fail "blis>=1.0.0,<1.1.0" blis
  '';

  build-system = [
    blis
    cymem
    cython_0
    cython
    murmurhash
    numpy
    preshed