git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.finalfusion: init at 0.7.1
commita470a23a779bb38b10e6334a7205601de2f44c31 authorDaniël de Kok <me@danieldk.eu> dateMon 17 Aug 2020, 10:02 (6 years ago) parent5454cf2
2 files changed+58
pkgs/development/python-modules/finalfusion/default.nix+56 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/finalfusion/default.nixnew file+56
@@ -0,0 +1,56 @@
1+{ buildPythonPackage
2+, fetchFromGitHub
3+, lib
4+, isPy3k
5+, cython
6+, numpy
7+, toml
8+, pytest
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "finalfusion";
13+ version = "0.7.1";
14+
15+ disabled = !isPy3k;
16+
17+ src = fetchFromGitHub {
18+ owner = "finalfusion";
19+ repo = "finalfusion-python";
20+ rev = version;
21+ sha256 = "0pwzflamxqvpl1wcz0zbhhd6aa4xn18rmza6rggaic3ckidhyrh4";
22+ };
23+
24+ nativeBuildInputs = [
25+ cython
26+ ];
27+
28+ propagatedBuildInputs = [
29+ numpy
30+ toml
31+ ];
32+
33+ checkInputs = [
34+ pytest
35+ ];
36+
37+ postPatch = ''
38+ patchShebangs tests/integration
39+ '';
40+
41+ checkPhase = ''
42+ # Regular unit tests.
43+ pytest
44+
45+ # Integration tests for command-line utilities.
46+ PATH=$PATH:$out/bin tests/integration/all.sh
47+ '';
48+
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; [ danieldk ];
53+ platforms = platforms.all;
54+ license = licenses.blueOak100;
55+ };
56+}
pkgs/top-level/python-packages.nix+2
@@ -764,6 +764,8 @@ in {
764764
765765 filemagic = callPackage ../development/python-modules/filemagic { };
766766
767+ finalfusion = callPackage ../development/python-modules/finalfusion { };
768+
767769 fints = callPackage ../development/python-modules/fints { };
768770
769771 fire = callPackage ../development/python-modules/fire { };