push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
wheel,
jaraco-test,
pytestCheckHook,
}:
let
self = buildPythonPackage rec {
pname = "backports-tarfile";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jaraco";
repo = "backports.tarfile";
rev = "v${version}";
hash = "sha256-X3rkL35aDG+DnIOq0fI7CFoWGNtgLkLjtT9y6+23oto=";
};
build-system = [
setuptools
setuptools-scm
wheel
];
doCheck = false;
nativeCheckInputs = [
jaraco-test
pytestCheckHook
];
disabledTests = [
# calls python -m backports.tarfile and doesn't find module documentation
"test_bad_use"
"test_create_command"
"test_create_command_compressed"
"test_create_command_dot_started_filename"
"test_create_command_dotless_filename"
"test_extract_command"
"test_extract_command_different_directory"
"test_extract_command_invalid_file"
"test_list_command_invalid_file"
"test_test_command"
"test_test_command_invalid_file"
# chmod: permission denied
"test_modes"
];
pythonImportsCheck = [ "backports.tarfile" ];
passthru.tests.pytest = self.overridePythonAttrs { doCheck = true; };
meta = with lib; {
description = "Backport of CPython tarfile module";
homepage = "https://github.com/jaraco/backports.tarfile";
license = licenses.mit;
maintainers = [ ];
};
};
in
self