Loading pkgs/development/python-modules/internetarchive/default.nix +34 −18 Original line number Diff line number Diff line { 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 = [ Loading @@ -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"; Loading Loading
pkgs/development/python-modules/internetarchive/default.nix +34 −18 Original line number Diff line number Diff line { 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 = [ Loading @@ -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"; Loading