1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitea,
5 nix-update-script,
6 setuptools,
7 setuptools-scm,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "inflate64";
13 version = "1.0.2";
14 pyproject = true;
15
16 src = fetchFromGitea {
17 domain = "codeberg.org";
18 owner = "miurahr";
19 repo = "inflate64";
20 tag = "v${version}";
21 hash = "sha256-qYTkL37IzvrhYYwj6i6X8WRSQxprNKgBnQEYRnztzjA=";
22 };
23
24 build-system = [
25 setuptools
26 setuptools-scm
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "inflate64"
35 ];
36
37 passthru.updateScript = nix-update-script { };
38
39 meta = {
40 description = "Compress and decompress with Enhanced Deflate compression algorithm";
41 homepage = "https://codeberg.org/miurahr/inflate64";
42 changelog = "https://codeberg.org/miurahr/inflate64/src/tag/v${version}/docs/Changelog.rst#v${version}";
43 license = lib.licenses.gpl2Plus;
44 maintainers = with lib.maintainers; [
45 pitkling
46 PopeRigby
47 ];
48 };
49
50}