summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/text2digits/default.nix
blob: 2dd59134a1aa7cc0137b72f0d4e8207dc7989dbc (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pypaInstallHook,
  setuptoolsBuildHook,
}:

buildPythonPackage rec {
  pname = "text2digits";
  version = "0.1.0";
  pyproject = false;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-oB2NyNVxediIulid9A4Ccw878t2JKrIsN1OOR5lyi7I=";
  };

  nativeBuildInputs = [
    pypaInstallHook
    setuptoolsBuildHook
  ];

  pythonImportsCheck = [ "text2digits" ];

  meta = {
    description = "Converts text such as 'twenty three' to number/digit '23' in any sentence";
    homepage = "https://github.com/ShailChoksi/text2digits";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ getchoo ];
  };
}