summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cmudict/default.nix
blob: ad9878c10d9b4c56063a1a788fac28a314e28c22 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  importlib-metadata,
  importlib-resources,
  poetry-core,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "cmudict";
  version = "1.1.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "prosegrinder";
    repo = "python-cmudict";
    tag = "v${finalAttrs.version}";
    hash = "sha256-pOqzezrDlwlVsvBHreHmLKxYKDxllZNs0TgLwxBhy58=";
    fetchSubmodules = true;
  };

  build-system = [ poetry-core ];

  dependencies = [
    importlib-metadata
    importlib-resources
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "cmudict" ];

  meta = {
    description = "Python wrapper package for The CMU Pronouncing Dictionary data files";
    homepage = "https://github.com/prosegrinder/python-cmudict";
    changelog = "https://github.com/prosegrinder/python-cmudict/blob/v${finalAttrs.version}/CHANGELOG.md";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ sandarukasa ];
  };
})