1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "t61codec";
11 version = "2.0.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "exhuma";
16 repo = "t61codec";
17 tag = "v${version}";
18 hash = "sha256-PNUahn6NpNWdK3yhcQ23qb08lkZeNW61GosShLiyPc8=";
19 };
20
21 build-system = [
22 poetry-core
23 ];
24
25 pythonImportsCheck = [ "t61codec" ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 meta = {
32 description = "Python codec for T.61 strings";
33 homepage = "https://github.com/exhuma/t61codec";
34 changelog = "https://github.com/exhuma/t61codec/blob/v${version}/CHANGES.rst";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ GaetanLepage ];
37 };
38}