python312Packages.extractcode: cleanup and skip failing test

Changed files
+24 -18
pkgs
development
python-modules
extractcode
+24 -18
pkgs/development/python-modules/extractcode/default.nix
···
{
lib,
buildPythonPackage,
extractcode-7z,
extractcode-libarchive,
-
fetchPypi,
patch,
pytest-xdist,
pytestCheckHook,
-
pythonOlder,
-
setuptools-scm,
-
six,
-
setuptools,
-
typecode,
}:
buildPythonPackage rec {
···
version = "31.0.0";
pyproject = true;
-
disabled = pythonOlder "3.6";
-
-
src = fetchPypi {
-
inherit pname version;
-
hash = "sha256-gIGTkum8+BKfdNiQT+ipjA3+0ngjVoQnNygsAoMRPYg=";
};
postPatch = ''
# PEP440 support was removed in newer setuptools, https://github.com/nexB/extractcode/pull/46
substituteInPlace setup.cfg \
-
--replace ">=3.6.*" ">=3.6"
'';
dontConfigure = true;
···
build-system = [ setuptools-scm ];
dependencies = [
-
typecode
-
patch
extractcode-libarchive
-
extractcode-7z
six
];
nativeCheckInputs = [
-
pytestCheckHook
pytest-xdist
];
disabledTestPaths = [
···
"test_patch_info_patch_patches_misc_linux_st710x_patches_motorola_rootdisk_c_patch"
# extractcode.libarchive2.ArchiveErrorRetryable: Damaged tar archive
"test_extract_python_testtar_tar_archive_with_special_files"
];
pythonImportsCheck = [ "extractcode" ];
-
meta = with lib; {
description = "Universal archive extractor using z7zip, libarchive, other libraries and the Python standard library";
homepage = "https://github.com/aboutcode-org/extractcode";
changelog = "https://github.com/aboutcode-org/extractcode/releases/tag/v${version}";
-
license = licenses.asl20;
maintainers = [ ];
mainProgram = "extractcode";
};
···
{
lib,
buildPythonPackage,
+
fetchFromGitHub,
+
+
# build-system
+
setuptools-scm,
+
+
# dependencies
extractcode-7z,
extractcode-libarchive,
patch,
+
six,
+
typecode,
+
+
# tests
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage rec {
···
version = "31.0.0";
pyproject = true;
+
src = fetchFromGitHub {
+
owner = "aboutcode-org";
+
repo = "extractcode";
+
tag = "v${version}";
+
hash = "sha256-mPHGe/pMaOnIykDd4AjGcvh/T4UrbaGxrSVGhchqYFM=";
};
postPatch = ''
# PEP440 support was removed in newer setuptools, https://github.com/nexB/extractcode/pull/46
substituteInPlace setup.cfg \
+
--replace-fail ">=3.6.*" ">=3.6"
'';
dontConfigure = true;
···
build-system = [ setuptools-scm ];
dependencies = [
+
extractcode-7z
extractcode-libarchive
+
patch
six
+
typecode
];
nativeCheckInputs = [
pytest-xdist
+
pytestCheckHook
];
disabledTestPaths = [
···
"test_patch_info_patch_patches_misc_linux_st710x_patches_motorola_rootdisk_c_patch"
# extractcode.libarchive2.ArchiveErrorRetryable: Damaged tar archive
"test_extract_python_testtar_tar_archive_with_special_files"
+
# AssertionError: [<function extract at 0x7ffff493dd00>] == [] for archive/rar/basic.rar
+
"test_get_extractors_2"
];
pythonImportsCheck = [ "extractcode" ];
+
meta = {
description = "Universal archive extractor using z7zip, libarchive, other libraries and the Python standard library";
homepage = "https://github.com/aboutcode-org/extractcode";
changelog = "https://github.com/aboutcode-org/extractcode/releases/tag/v${version}";
+
license = lib.licenses.asl20;
maintainers = [ ];
mainProgram = "extractcode";
};