python39Packages.thinc: 8.0.3 -> 8.0.1
This commit is contained in:
parent
27835c2ee0
commit
654d462e12
@ -2,41 +2,48 @@
|
|||||||
, lib
|
, lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonOlder
|
, pytestCheckHook
|
||||||
, pytest
|
|
||||||
, blis
|
, blis
|
||||||
, catalogue
|
, catalogue
|
||||||
, cymem
|
, cymem
|
||||||
, cython
|
, cython
|
||||||
, darwin
|
, Accelerate
|
||||||
|
, CoreFoundation
|
||||||
|
, CoreGraphics
|
||||||
|
, CoreVideo
|
||||||
, hypothesis
|
, hypothesis
|
||||||
, mock
|
, mock
|
||||||
, murmurhash
|
, murmurhash
|
||||||
, numpy
|
, numpy
|
||||||
, pathlib
|
, pathlib
|
||||||
, plac
|
, plac
|
||||||
|
, pythonOlder
|
||||||
, preshed
|
, preshed
|
||||||
, pydantic
|
, pydantic
|
||||||
, srsly
|
, srsly
|
||||||
, tqdm
|
, tqdm
|
||||||
|
, typing-extensions
|
||||||
, wasabi
|
, wasabi
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "thinc";
|
pname = "thinc";
|
||||||
version = "8.0.3";
|
version = "8.0.10";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-w3CnpG0BtYjY1fmdjV42s8usRRJjg1b6Qw9/Urs6iJc=";
|
hash = "sha256-teTbjSTmvopfHkoXhUdyt5orVgIkUZ9Qoh85UcokAB8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cython ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
buildInputs = [ cython ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [
|
||||||
Accelerate
|
Accelerate
|
||||||
CoreFoundation
|
CoreFoundation
|
||||||
CoreGraphics
|
CoreGraphics
|
||||||
CoreVideo
|
CoreVideo
|
||||||
]);
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
blis
|
blis
|
||||||
@ -50,27 +57,20 @@ buildPythonPackage rec {
|
|||||||
tqdm
|
tqdm
|
||||||
pydantic
|
pydantic
|
||||||
wasabi
|
wasabi
|
||||||
] ++ lib.optional (pythonOlder "3.4") pathlib;
|
] ++ lib.optional (pythonOlder "3.8") typing-extensions;
|
||||||
|
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
hypothesis
|
hypothesis
|
||||||
mock
|
mock
|
||||||
pytest
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# Cannot find cython modules.
|
# Cannot find cython modules.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postPatch = ''
|
pytestFlagsArray = [
|
||||||
substituteInPlace setup.cfg \
|
"thinc/tests"
|
||||||
--replace "blis>=0.4.0,<0.8.0" "blis>=0.4.0,<1.0" \
|
];
|
||||||
--replace "pydantic>=1.7.1,<1.8.0" "pydantic~=1.7"
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
pytest thinc/tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "thinc" ];
|
pythonImportsCheck = [ "thinc" ];
|
||||||
|
|
||||||
|
@ -9022,7 +9022,9 @@ in {
|
|||||||
|
|
||||||
thespian = callPackage ../development/python-modules/thespian { };
|
thespian = callPackage ../development/python-modules/thespian { };
|
||||||
|
|
||||||
thinc = callPackage ../development/python-modules/thinc { };
|
thinc = callPackage ../development/python-modules/thinc {
|
||||||
|
inherit (pkgs.darwin.apple_sdk.frameworks) Accelerate CoreFoundation CoreGraphics CoreVideo;
|
||||||
|
};
|
||||||
|
|
||||||
threadpool = callPackage ../development/python-modules/threadpool { };
|
threadpool = callPackage ../development/python-modules/threadpool { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user