Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 60 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ buildPythonPackage, fetchFromGitHub, lib, isPy3k, cython, numpy, toml, pytest}:
buildPythonPackage rec { pname = "finalfusion"; version = "0.7.1";
disabled = !isPy3k;
src = fetchFromGitHub { owner = "finalfusion"; repo = "finalfusion-python"; rev = version; sha256 = "0pwzflamxqvpl1wcz0zbhhd6aa4xn18rmza6rggaic3ckidhyrh4"; };
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ numpy toml ];
nativeCheckInputs = [ pytest ];
postPatch = '' patchShebangs tests/integration
# `np.float` was a deprecated alias of the builtin `float` substituteInPlace tests/test_storage.py \ --replace 'dtype=np.float)' 'dtype=float)' '';
checkPhase = '' # Regular unit tests. pytest
# Integration tests for command-line utilities. PATH=$PATH:$out/bin tests/integration/all.sh '';
meta = with lib; { description = "Python module for using finalfusion, word2vec, and fastText word embeddings"; homepage = "https://github.com/finalfusion/finalfusion-python/"; maintainers = with maintainers; [ ]; platforms = platforms.all; license = licenses.blueOak100; };}