nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 buildPythonPackage,
6 setuptools,
7 regex,
8}:
9
10buildPythonPackage rec {
11 pname = "somajo";
12 version = "2.4.3";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "tsproisl";
17 repo = "SoMaJo";
18 tag = "v${version}";
19 hash = "sha256-fq891LX6PukUEfrXplulhnisuPX/RqLAQ/5ty/Fvm9k=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ regex ];
25
26 # loops forever
27 doCheck = !stdenv.hostPlatform.isDarwin;
28
29 pythonImportsCheck = [ "somajo" ];
30
31 meta = {
32 description = "Tokenizer and sentence splitter for German and English web texts";
33 homepage = "https://github.com/tsproisl/SoMaJo";
34 changelog = "https://github.com/tsproisl/SoMaJo/blob/v${version}/CHANGES.txt";
35 license = lib.licenses.gpl3Plus;
36 maintainers = [ ];
37 mainProgram = "somajo-tokenizer";
38 };
39}