1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitea,
5 setuptools,
6 setuptools-scm,
7 hypothesis,
8 pytest-benchmark,
9 pytest-timeout,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "pyppmd";
15 version = "1.1.1";
16 pyproject = true;
17
18 src = fetchFromGitea {
19 domain = "codeberg.org";
20 owner = "miurahr";
21 repo = "pyppmd";
22 tag = "v${version}";
23 hash = "sha256-0t1vyVMtmhb38C2teJ/Lq7dx4usm4Bzx+k7Zalf/nXE=";
24 };
25
26 build-system = [
27 setuptools
28 setuptools-scm
29 ];
30
31 nativeCheckInputs = [
32 hypothesis
33 pytest-benchmark
34 pytest-timeout
35 pytestCheckHook
36 ];
37
38 pytestFlags = [ "--benchmark-disable" ];
39
40 pythonImportsCheck = [
41 "pyppmd"
42 ];
43
44 meta = {
45 description = "PPMd compression/decompression library";
46 homepage = "https://codeberg.org/miurahr/pyppmd";
47 changelog = "https://codeberg.org/miurahr/pyppmd/src/tag/v${version}/Changelog.rst#v${version}";
48 license = lib.licenses.gpl2Plus;
49 maintainers = with lib.maintainers; [
50 pitkling
51 PopeRigby
52 ];
53 };
54}