python310Packages.internetarchive: 3.4.0 -> 3.5.0

Diff: https://github.com/jjjake/internetarchive/compare/v3.4.0...v3.5.0
This commit is contained in:
Mario Rodas 2023-05-13 04:20:00 +00:00
parent 8360969cfe
commit 91b5b28704

View File

@ -1,30 +1,32 @@
{ buildPythonPackage
, fetchPypi
, pytest
, tqdm
{ lib
, buildPythonPackage
, docopt
, fetchFromGitHub
, pytestCheckHook
, requests
, jsonpatch
, schema
, responses
, lib
, glibcLocales
, setuptools
, tqdm
, urllib3
, pythonOlder
}:
buildPythonPackage rec {
pname = "internetarchive";
version = "3.4.0";
version = "3.5.0";
format = "setuptools";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-vrvktAuijBKo3IsMQzUs5EyfwFCFGmvXZ4kCvlbeGWE=";
# no tests data included in PyPI tarball
src = fetchFromGitHub {
owner = "jjjake";
repo = "internetarchive";
rev = "v${version}";
hash = "sha256-apBzx1qMHEA0wiWh82sS7I+AaiMEoAchhPsrtAgujbQ=";
};
propagatedBuildInputs = [
@ -37,16 +39,30 @@ buildPythonPackage rec {
urllib3
];
nativeCheckInputs = [ pytest responses glibcLocales ];
nativeCheckInputs = [
responses
pytestCheckHook
];
# tests depend on network
doCheck = false;
disabledTests = [
# Tests require network access
"test_get_item_with_kwargs"
"test_upload"
"test_upload_metadata"
"test_upload_queue_derive"
"test_upload_validate_identifie"
"test_upload_validate_identifier"
];
checkPhase = ''
LC_ALL=en_US.utf-8 pytest tests
'';
disabledTestPaths = [
# Tests require network access
"tests/cli/test_ia.py"
"tests/cli/test_ia_download.py"
];
pythonImportsCheck = [ "internetarchive" ];
pythonImportsCheck = [
"internetarchive"
];
meta = with lib; {
description = "A Python and Command-Line Interface to Archive.org";