Unverified Commit 9d829f3d authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #289044 from ViZiD/python-idzip

python311Packages.python-idzip init at 0.3.9
parents 75ca44d3 fa681206
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -20280,6 +20280,12 @@
    githubId = 326263;
    name = "Danny Wilson";
  };
  vizid = {
    email = "vizid1337@gmail.com";
    github = "ViZiD";
    githubId = 7444430;
    name = "Radik Islamov";
  };
  vklquevs = {
    email = "vklquevs@gmail.com";
    github = "vklquevs";
+69 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch

, pythonOlder

, setuptools

, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "python-idzip";
  version = "0.3.9";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "bauman";
    repo = "python-idzip";
    rev = "refs/tags/${version}";
    hash = "sha256-ChzwC/Afn0qeo5anq4anIu2eI9i6XDnSvB7jAwY7rSw=";
  };

  patches = [
    # fix collision
    # https://github.com/bauman/python-idzip/pull/23
    (fetchpatch {
      name = "fix-bin-folder-collisions.patch";
      url = "https://patch-diff.githubusercontent.com/raw/bauman/python-idzip/pull/23.patch";
      hash = "sha256-4fPhLdY9MaH1aX6tqMT+NNNNDsyv87G0xBh4MC+5yQE=";
    })
  ];

  nativeBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTestPaths = [
    # need third-party files
    # https://github.com/bauman/python-idzip/blob/master/.github/workflows/test.yaml#L2https://github.com/bauman/python-idzip/blob/master/.github/workflows/test.yaml#L288
    "test/test_compressor.py"
    "test/test_decompressor.py"
    "test/test_lucky_cache.py"
    "test/test_readline.py"
    "test/test_seek_read_behavior.py"
    "test/test_zero_cache.py"
  ];

  disabledTests = [
    # Terminated
    # pop_var_context: head of shell_variables not a function context
    "test_bufferedio_compat"
  ];

  meta = with lib; {
    description = "Seekable, gzip compatible, compression format";
    homepage = "https://github.com/bauman/python-idzip";
    changelog = "https://github.com/bauman/python-idzip/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ vizid ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9748,6 +9748,8 @@ self: super: with self; {
  python-tado = callPackage ../development/python-modules/python-tado { };
  python-idzip = callPackage ../development/python-modules/python-idzip { };
  pythonfinder = callPackage ../development/python-modules/pythonfinder { };
  pytomorrowio = callPackage ../development/python-modules/pytomorrowio { };