From 8eca99557db7819adc73b16698ca1156c2437434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sat, 12 Dec 2020 11:24:25 +0100 Subject: [PATCH 1/2] python3Packages.thinc: 7.4.4 -> 7.4.5 Changelog: https://github.com/explosion/thinc/releases/tag/v7.4.5 Also move cython from propagatedBuildInputs to buildInputs. --- pkgs/development/python-modules/thinc/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/thinc/default.nix b/pkgs/development/python-modules/thinc/default.nix index f63b181a8a81..ed9beedf95e7 100644 --- a/pkgs/development/python-modules/thinc/default.nix +++ b/pkgs/development/python-modules/thinc/default.nix @@ -23,14 +23,14 @@ buildPythonPackage rec { pname = "thinc"; - version = "7.4.4"; + version = "7.4.5"; src = fetchPypi { inherit pname version; - sha256 = "08cf5cf7d70135db931c9f9d6f3b1844c53046c88f6072675fc164884f44c9e2"; + sha256 = "5743fde41706252ec6ce4737c68d3505f7e1cc3d4431174a17149838d594f8cb"; }; - buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ + buildInputs = [ cython ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate CoreFoundation CoreGraphics CoreVideo ]); @@ -38,7 +38,6 @@ buildPythonPackage rec { blis catalogue cymem - cython murmurhash numpy plac @@ -60,7 +59,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ - --replace "blis>=0.4.0,<0.5.0" "blis>=0.4.0,<1.0" \ + --replace "blis>=0.4.0,<0.8.0" "blis>=0.4.0,<1.0" \ --replace "catalogue>=0.0.7,<1.1.0" "catalogue>=0.0.7,<3.0" \ --replace "plac>=0.9.6,<1.2.0" "plac>=0.9.6,<2.0" \ --replace "srsly>=0.0.6,<1.1.0" "srsly>=0.0.6,<3.0" From 5d6ade75cfad45a37e304915b9face97325ba282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sat, 12 Dec 2020 11:25:57 +0100 Subject: [PATCH 2/2] python3Packages.thinc: nixpkgs-fmt --- .../python-modules/thinc/default.nix | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/thinc/default.nix b/pkgs/development/python-modules/thinc/default.nix index ed9beedf95e7..cfc926424605 100644 --- a/pkgs/development/python-modules/thinc/default.nix +++ b/pkgs/development/python-modules/thinc/default.nix @@ -31,20 +31,23 @@ buildPythonPackage rec { }; buildInputs = [ cython ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ - Accelerate CoreFoundation CoreGraphics CoreVideo + Accelerate + CoreFoundation + CoreGraphics + CoreVideo ]); propagatedBuildInputs = [ - blis - catalogue - cymem - murmurhash - numpy - plac - preshed - srsly - tqdm - wasabi + blis + catalogue + cymem + murmurhash + numpy + plac + preshed + srsly + tqdm + wasabi ] ++ lib.optional (pythonOlder "3.4") pathlib; @@ -76,5 +79,5 @@ buildPythonPackage rec { homepage = "https://github.com/explosion/thinc"; license = licenses.mit; maintainers = with maintainers; [ aborsu danieldk sdll ]; - }; + }; }