summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/normality/default.nix
blob: 7ef80d8e9cdbaa89c372439583b1a4b3e8415567 (plain)
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
37
38
39
40
41
42
43
44
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  hatchling,
  charset-normalizer,
  chardet,
  banal,
  pyicu,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "normality";
  version = "3.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pudo";
    repo = "normality";
    tag = finalAttrs.version;
    hash = "sha256-X8ssSURC3NiQ1uf2qv1PgCBIYQnmoYVKPn5YPdJG71o=";
  };

  build-system = [ hatchling ];

  dependencies = [
    charset-normalizer
    chardet
    banal
    pyicu
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "normality" ];

  meta = {
    description = "Micro-library to normalize text strings";
    homepage = "https://github.com/pudo/normality";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
})