about summary refs log tree commit diff
path: root/pkgs/development/python-modules/unidecode/default.nix
blob: 96e487871aa33cd75ac1ca426e700dfd7dcfbca7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "unidecode";
  version = "1.3.4";
  format = "setuptools";

  disabled = pythonOlder "3.5";

  src = fetchFromGitHub {
    owner = "avian2";
    repo = pname;
    rev = "${pname}-${version}";
    hash = "sha256-2LRV6Egst2bdxefEzfuA9Ef8zMSWvmlCEV/sIzezyPw=";
  };

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "unidecode"
  ];

  meta = with lib; {
    description = "ASCII transliterations of Unicode text";
    homepage = "https://pypi.python.org/pypi/Unidecode/";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ domenkozar ];
  };
}