ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / finalfusion / default.nix
blob379ed954dae0c00bf259dc93c93ef6ba80532385
1 { buildPythonPackage
2 , fetchFromGitHub
3 , lib
4 , isPy3k
5 , cython
6 , numpy
7 , toml
8 , pytest
9 }:
11 buildPythonPackage rec {
12   pname = "finalfusion";
13   version = "0.7.1";
15   disabled = !isPy3k;
17   src = fetchFromGitHub {
18     owner = "finalfusion";
19     repo = "finalfusion-python";
20     rev = version;
21     sha256 = "0pwzflamxqvpl1wcz0zbhhd6aa4xn18rmza6rggaic3ckidhyrh4";
22   };
24   nativeBuildInputs = [
25     cython
26   ];
28   propagatedBuildInputs = [
29     numpy
30     toml
31   ];
33   checkInputs = [
34     pytest
35   ];
37   postPatch = ''
38     patchShebangs tests/integration
39   '';
41   checkPhase = ''
42     # Regular unit tests.
43     pytest
45     # Integration tests for command-line utilities.
46     PATH=$PATH:$out/bin tests/integration/all.sh
47   '';
49   meta = with lib; {
50     description = "Python module for using finalfusion, word2vec, and fastText word embeddings";
51     homepage = "https://github.com/finalfusion/finalfusion-python/";
52     maintainers = with maintainers; [ ];
53     platforms = platforms.all;
54     license = licenses.blueOak100;
55   };