Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 72 lines 1.5 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 requests, 7 jsonpatch, 8 schema, 9 responses, 10 setuptools, 11 tqdm, 12 urllib3, 13 pythonOlder, 14 importlib-metadata, 15}: 16 17buildPythonPackage rec { 18 pname = "internetarchive"; 19 version = "5.0.4"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchFromGitHub { 25 owner = "jjjake"; 26 repo = "internetarchive"; 27 rev = "refs/tags/v${version}"; 28 hash = "sha256-x4EzVm22iZhGysg2iMtuil2tNJn4/8cWYyULLowODGc="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 tqdm 35 requests 36 jsonpatch 37 schema 38 urllib3 39 ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; 40 41 nativeCheckInputs = [ 42 responses 43 pytestCheckHook 44 ]; 45 46 disabledTests = [ 47 # Tests require network access 48 "test_get_item_with_kwargs" 49 "test_upload" 50 "test_upload_metadata" 51 "test_upload_queue_derive" 52 "test_upload_validate_identifie" 53 "test_upload_validate_identifier" 54 ]; 55 56 disabledTestPaths = [ 57 # Tests require network access 58 "tests/cli/test_ia.py" 59 "tests/cli/test_ia_download.py" 60 ]; 61 62 pythonImportsCheck = [ "internetarchive" ]; 63 64 meta = with lib; { 65 description = "Python and Command-Line Interface to Archive.org"; 66 homepage = "https://github.com/jjjake/internetarchive"; 67 changelog = "https://github.com/jjjake/internetarchive/blob/v${version}/HISTORY.rst"; 68 license = licenses.agpl3Plus; 69 maintainers = [ ]; 70 mainProgram = "ia"; 71 }; 72}