From 1ef3d6fd9f94310facc2f5a7bdff76416903afb3 Mon Sep 17 00:00:00 2001 From: ByteSudoer Date: Wed, 3 Jul 2024 14:39:16 +0100 Subject: [PATCH] py7zr: init at 0.21.1 --- .../python-modules/inflate64/default.nix | 8 +-- .../python-modules/py7zr/default.nix | 56 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 12 ++++ 3 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 pkgs/development/python-modules/py7zr/default.nix diff --git a/pkgs/development/python-modules/inflate64/default.nix b/pkgs/development/python-modules/inflate64/default.nix index 0012b0719e49e..01a31c00b3cbb 100644 --- a/pkgs/development/python-modules/inflate64/default.nix +++ b/pkgs/development/python-modules/inflate64/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "inflate64"; version = "1.0.0"; - format = "pyproject"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -24,11 +24,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "inflate64" ]; - meta = with lib; { + meta = { homepage = "https://codeberg.org/miurahr/inflate64"; description = "Compress and decompress with Enhanced Deflate compression algorithm"; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ ByteSudoer ]; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ ByteSudoer ]; }; } diff --git a/pkgs/development/python-modules/py7zr/default.nix b/pkgs/development/python-modules/py7zr/default.nix new file mode 100644 index 0000000000000..2ac681cd03b49 --- /dev/null +++ b/pkgs/development/python-modules/py7zr/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, fetchPypi + +, setuptools +, setuptools-scm + + +, brotli +, inflate64 +, multivolumefile +, psutil +, pybcj +, pycryptodomex +, pyppmd +, pyzstd +, texttable + +}: +buildPythonPackage rec { + pname = "py7zr"; + version = "0.21.1"; + + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-3t6O2LezKzWGrEdto6SCtp3UMyKUIL8PYsSVQEtyx5k="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ + brotli + inflate64 + multivolumefile + psutil + pybcj + pycryptodomex + pyppmd + pyzstd + texttable + ]; + + pythonImportsCheck = [ "py7zr" ]; + + meta = with lib; { + homepage = "https://github.com/miurahr/py7zr"; + description = "7zip in python3 with ZStandard, PPMd, LZMA2, LZMA1, Delta, BCJ, BZip2"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ ByteSudoer ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1044855bc635f..20a561bff6388 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5849,6 +5849,8 @@ self: super: with self; { infinity = callPackage ../development/python-modules/infinity { }; + inflate64 = callPackage ../development/python-modules/inflate64 { }; + inflect = callPackage ../development/python-modules/inflect { }; inflection = callPackage ../development/python-modules/inflection { }; @@ -7901,6 +7903,8 @@ self: super: with self; { multitasking = callPackage ../development/python-modules/multitasking { }; + multivolumefile = callPackage ../development/python-modules/multivolumefile { }; + munch = callPackage ../development/python-modules/munch { }; mung = callPackage ../development/python-modules/mung { }; @@ -10037,6 +10041,8 @@ self: super: with self; { py65 = callPackage ../development/python-modules/py65 { }; + py7zr = callPackage ../development/python-modules/py7zr { }; + pyaehw4a1 = callPackage ../development/python-modules/pyaehw4a1 { }; pyatag = callPackage ../development/python-modules/pyatag { }; @@ -10045,6 +10051,8 @@ self: super: with self; { pyatome = callPackage ../development/python-modules/pyatome { }; + pybcj = callPackage ../development/python-modules/pybcj { }; + pycketcasts = callPackage ../development/python-modules/pycketcasts { }; pycomm3 = callPackage ../development/python-modules/pycomm3 { }; @@ -10146,6 +10154,8 @@ self: super: with self; { pypoolstation = callPackage ../development/python-modules/pypoolstation { }; + pyppmd = callPackage ../development/python-modules/pyppmd { }; + pyrdfa3 = callPackage ../development/python-modules/pyrdfa3 { }; pyre-extensions = callPackage ../development/python-modules/pyre-extensions { }; @@ -10288,6 +10298,8 @@ self: super: with self; { pyzipper = callPackage ../development/python-modules/pyzipper { }; + pyzstd = callPackage ../development/python-modules/pyzstd { }; + pkutils = callPackage ../development/python-modules/pkutils { }; plac = callPackage ../development/python-modules/plac { };