depot/third_party/nixpkgs/pkgs/development/python-modules/thinc/default.nix
Default email 5e2a688410 Project import generated by Copybara.
GitOrigin-RevId: 5e2018f7b383aeca6824a30c0cd1978c9532a46a
2021-10-06 10:57:05 -03:00

83 lines
1.3 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, blis
, catalogue
, cymem
, cython
, Accelerate
, CoreFoundation
, CoreGraphics
, CoreVideo
, hypothesis
, mock
, murmurhash
, numpy
, pathlib
, plac
, pythonOlder
, preshed
, pydantic
, srsly
, tqdm
, typing-extensions
, wasabi
}:
buildPythonPackage rec {
pname = "thinc";
version = "8.0.10";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-teTbjSTmvopfHkoXhUdyt5orVgIkUZ9Qoh85UcokAB8=";
};
buildInputs = [ cython ]
++ lib.optionals stdenv.isDarwin [
Accelerate
CoreFoundation
CoreGraphics
CoreVideo
];
propagatedBuildInputs = [
blis
catalogue
cymem
murmurhash
numpy
plac
preshed
srsly
tqdm
pydantic
wasabi
] ++ lib.optional (pythonOlder "3.8") typing-extensions;
checkInputs = [
hypothesis
mock
pytestCheckHook
];
# Cannot find cython modules.
doCheck = false;
pytestFlagsArray = [
"thinc/tests"
];
pythonImportsCheck = [ "thinc" ];
meta = with lib; {
description = "Practical Machine Learning for NLP in Python";
homepage = "https://github.com/explosion/thinc";
license = licenses.mit;
maintainers = with maintainers; [ aborsu ];
};
}