Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / segments / default.nix
blob00953a8e90902ec13056d24edcdfb9b86b40791f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , isPy27
5 , regex
6 , csvw
7 , clldutils
8 , mock
9 , pytestCheckHook
10 , pytest-mock
13 buildPythonPackage rec {
14   pname = "segments";
15   version = "2.2.0";
16   disabled = isPy27;
18   src = fetchFromGitHub {
19     owner = "cldf";
20     repo = pname;
21     rev = "v${version}";
22     sha256 = "04yc8q79zk09xj0wnal0vdg5azi9jlarfmf2iyljqyr80p79gwvv";
23   };
25   patchPhase = ''
26     substituteInPlace setup.cfg --replace "--cov" ""
27   '';
29   propagatedBuildInputs = [
30     regex
31     csvw
32     clldutils
33   ];
35   checkInputs = [
36     mock
37     pytestCheckHook
38     pytest-mock
39   ];
41   meta = with lib; {
42     description = "Unicode Standard tokenization routines and orthography profile segmentation";
43     homepage = "https://github.com/cldf/segments";
44     license = licenses.asl20;
45     maintainers = with maintainers; [ hexa ];
46   };