Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 setuptools-scm, 7 wheel, 8 jaraco-test, 9 pytestCheckHook, 10}: 11 12let self = buildPythonPackage rec { 13 pname = "backports-tarfile"; 14 version = "1.2.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "jaraco"; 19 repo = "backports.tarfile"; 20 rev = "v${version}"; 21 hash = "sha256-X3rkL35aDG+DnIOq0fI7CFoWGNtgLkLjtT9y6+23oto="; 22 }; 23 24 build-system = [ 25 setuptools 26 setuptools-scm 27 wheel 28 ]; 29 30 doCheck = false; 31 32 nativeCheckInputs = [ 33 jaraco-test 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # calls python -m backports.tarfile and doesn't find module documentation 39 "test_bad_use" 40 "test_create_command" 41 "test_create_command_compressed" 42 "test_create_command_dot_started_filename" 43 "test_create_command_dotless_filename" 44 "test_extract_command" 45 "test_extract_command_different_directory" 46 "test_extract_command_invalid_file" 47 "test_list_command_invalid_file" 48 "test_test_command" 49 "test_test_command_invalid_file" 50 # chmod: permission denied 51 "test_modes" 52 ]; 53 54 pythonImportsCheck = [ "backports.tarfile" ]; 55 56 passthru.tests.pytest = self.overridePythonAttrs { doCheck = true; }; 57 58 meta = with lib; { 59 description = "Backport of CPython tarfile module"; 60 homepage = "https://github.com/jaraco/backports.tarfile"; 61 license = licenses.mit; 62 maintainers = [ ]; 63 }; 64}; 65in self