at master 1.2 kB view raw
1{ 2 lib, 3 blas, 4 blis, 5 buildPythonPackage, 6 catalogue, 7 confection, 8 cymem, 9 cython, 10 fetchPypi, 11 hypothesis, 12 mock, 13 murmurhash, 14 numpy, 15 preshed, 16 pydantic, 17 pytestCheckHook, 18 setuptools, 19 srsly, 20 wasabi, 21}: 22 23buildPythonPackage rec { 24 pname = "thinc"; 25 version = "8.3.6"; 26 pyproject = true; 27 28 src = fetchPypi { 29 inherit pname version; 30 hash = "sha256-SZg/m33cQ0OpUyaUqRGN0hbXpgBSCiGEmkO2wmjsbK0="; 31 }; 32 33 build-system = [ 34 blis 35 cymem 36 cython 37 murmurhash 38 numpy 39 preshed 40 setuptools 41 ]; 42 43 buildInputs = [ 44 blas 45 ]; 46 47 dependencies = [ 48 blis 49 catalogue 50 confection 51 cymem 52 murmurhash 53 numpy 54 preshed 55 pydantic 56 srsly 57 wasabi 58 ]; 59 60 nativeCheckInputs = [ 61 hypothesis 62 mock 63 pytestCheckHook 64 ]; 65 66 preCheck = '' 67 # avoid local paths, relative imports wont resolve correctly 68 mv thinc/tests tests 69 rm -r thinc 70 ''; 71 72 pythonImportsCheck = [ "thinc" ]; 73 74 meta = { 75 description = "Library for NLP machine learning"; 76 homepage = "https://github.com/explosion/thinc"; 77 changelog = "https://github.com/explosion/thinc/releases/tag/v${version}"; 78 license = lib.licenses.mit; 79 maintainers = with lib.maintainers; [ aborsu ]; 80 }; 81}