Files
nixpkgs/pkgs/development/python-modules/python-idzip/default.nix
T

53 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "python-idzip";
version = "0.3.10";
pyproject = true;
src = fetchFromGitHub {
owner = "bauman";
repo = "python-idzip";
tag = version;
hash = "sha256-LAai0yRenGhBRdgTKA/T0bBrL0Aq+idFHt0NDMSLHMk=";
};
build-system = [ 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 = {
description = "Seekable, gzip compatible, compression format";
mainProgram = "idzip";
homepage = "https://github.com/bauman/python-idzip";
changelog = "https://github.com/bauman/python-idzip/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ vizid ];
};
}