Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py7zr: init at 0.21.1 #324293

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/inflate64/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi

, setuptools
, setuptools-scm
}:

buildPythonPackage rec {
pname = "inflate64";
version = "1.0.0";

pyproject = true;

src = fetchPypi {
inherit pname version;

hash = "sha256-MniCe4A88Aah3yUfPhM3TH0m23eeWjMynMEXibgEvC0=";
};
build-system = [
Comment on lines +13 to +20
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-MniCe4A88Aah3yUfPhM3TH0m23eeWjMynMEXibgEvC0=";
};
build-system = [
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-MniCe4A88Aah3yUfPhM3TH0m23eeWjMynMEXibgEvC0=";
};
build-system = [

setuptools
setuptools-scm
];

pythonImportsCheck = [ "inflate64" ];

meta = {
homepage = "https://codeberg.org/miurahr/inflate64";
description = "Compress and decompress with Enhanced Deflate compression algorithm";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ ByteSudoer ];
};

}
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/multivolumefile/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, setuptools-scm
}:

buildPythonPackage rec {
pname = "multivolumefile";
version = "0.2.3";

format = "pyproject";

src = fetchPypi {
inherit pname version;
hash = "sha256-oGSNCq+8luWRmNXBfprK1+tTGr6lEDXQjOgGDcrXCdY=";
};

build-system = [
setuptools
setuptools-scm
];

pythonImportsCheck = [ "multivolumefile" ];

doCheck = true;

meta = with lib; {
homepage = "https://codeberg.org/miurahr/multivolume";
description = "Library to provide a file-object wrapping multiple files as virtually like as a single file";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ByteSudoer ];
};
}
56 changes: 56 additions & 0 deletions pkgs/development/python-modules/py7zr/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
35 changes: 35 additions & 0 deletions pkgs/development/python-modules/pybcj/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, setuptools-scm

, pytest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is unused

}:

buildPythonPackage rec {
pname = "pybcj";
version = "1.0.2";
format = "pyproject";

src = fetchPypi {
inherit pname version;
hash = "sha256-x/W+9/R3I8U0ION3vGTSVThDvui8rF8K0HarFSR4ABg=";
};


build-system = [
setuptools
setuptools-scm
];


pythonImportsCheck = [ "bcj" "lzma" ];
Comment on lines +18 to +27
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
};
build-system = [
setuptools
setuptools-scm
];
pythonImportsCheck = [ "bcj" "lzma" ];
};
build-system = [
setuptools
setuptools-scm
];
pythonImportsCheck = [ "bcj" "lzma" ];


meta = with lib; {
homepage = "https://codeberg.org/miurahr/pybcj";
description = "BCJ(Branch-Call-Jump) filter for python";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ByteSudoer ];
};
}
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/pyppmd/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi

, setuptools
, setuptools-scm
}:

buildPythonPackage rec{
pname = "pyppmd";
version = "1.1.0";

format = "pyproject";

src = fetchPypi {
inherit pname version;
hash = "sha256-HTjOLkt+uEtTvIpSOAuU9mumw5MouIALMMK1vzFpOXM=";
};


build-system = [
setuptools
setuptools-scm
];


Comment on lines +19 to +26
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
build-system = [
setuptools
setuptools-scm
];
build-system = [
setuptools
setuptools-scm
];

pythonImportsCheck = [ "pyppmd" ];

meta = with lib; {
homepage = "https://codeberg.org/miurahr/pyppmd";
description = "PPMd compression/decompression library";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ByteSudoer ];
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

}
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/pyzstd/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub

, setuptools
}:

buildPythonPackage rec {
pname = "pyzstd";
version = "0.16.0";

format = "pyproject";
Comment on lines +11 to +12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
format = "pyproject";
pyproject = true;

please replace all occurrences of this


src = fetchFromGitHub {
repo = "pyzstd";
owner = "Rogdham";
rev = "${version}";
fetchSubmodules = true;
hash = "sha256-//SeXs65Qcrbdyj3Ilk8XYUIgpwTej0Eaxv711g+3m8=";
};

build-system = [
setuptools
];

pythonImportsCheck = [ "pyzstd" ];

meta = with lib; {
homepage = "https://github.com/Rogdham/pyzstd";
description = "Python bindings to Zstandard (zstd) compression library";
license = licenses.bsd3;
maintainers = with maintainers; [ ByteSudoer ];
};
}
12 changes: 12 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down Expand Up @@ -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 { };
Expand Down Expand Up @@ -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 { };
Expand All @@ -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 { };
Expand Down Expand Up @@ -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 { };
Expand Down Expand Up @@ -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 { };
Expand Down