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

buildPythonPackage rec {
  pname = "t61codec";
  version = "2.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "exhuma";
    repo = "t61codec";
    tag = "v${version}";
    hash = "sha256-PNUahn6NpNWdK3yhcQ23qb08lkZeNW61GosShLiyPc8=";
  };

  build-system = [
    poetry-core
  ];

  pythonImportsCheck = [ "t61codec" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Python codec for T.61 strings";
    homepage = "https://github.com/exhuma/t61codec";
    changelog = "https://github.com/exhuma/t61codec/blob/v${version}/CHANGES.rst";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}