12 buildPythonPackage rec {
13 pname = "finalfusion";
15 format = "setuptools";
19 src = fetchFromGitHub {
20 owner = "finalfusion";
21 repo = "finalfusion-python";
23 sha256 = "0pwzflamxqvpl1wcz0zbhhd6aa4xn18rmza6rggaic3ckidhyrh4";
26 nativeBuildInputs = [ cython ];
28 propagatedBuildInputs = [
33 nativeCheckInputs = [ pytest ];
36 patchShebangs tests/integration
38 # `np.float` was a deprecated alias of the builtin `float`
39 substituteInPlace tests/test_storage.py \
40 --replace 'dtype=np.float)' 'dtype=float)'
47 # Integration tests for command-line utilities.
48 PATH=$PATH:$out/bin tests/integration/all.sh
52 description = "Python module for using finalfusion, word2vec, and fastText word embeddings";
53 homepage = "https://github.com/finalfusion/finalfusion-python/";
55 platforms = platforms.all;
56 license = licenses.blueOak100;