python3Packages.s3transfer: enable tests

This commit is contained in:
Fabian Affolter 2022-01-10 12:19:11 +01:00
parent a2a0d71f35
commit adf8815c8e

View File

@ -1,52 +1,57 @@
{ lib { lib
, fetchPypi , botocore
, pythonOlder
, buildPythonPackage , buildPythonPackage
, docutils , docutils
, fetchFromGitHub
, mock , mock
, nose , pytestCheckHook
, coverage , pythonOlder
, wheel , wheel
, unittest2
, botocore
, futures ? null
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "s3transfer"; pname = "s3transfer";
version = "0.5.0"; version = "0.5.0";
format = "setuptools";
src = fetchPypi { disabled = pythonOlder "3.6";
inherit pname version;
sha256 = "sha256-UO2CPh3FhorUDI3JIHL3V6oOZToZKEXJSjtnb0pi2kw="; src = fetchFromGitHub {
owner = "boto";
repo = pname;
rev = version;
hash = "sha256-0Dl7oKB2xxq/a8do3HgBUIGay88yOGBUdOGo+QCtnUE=";
}; };
propagatedBuildInputs = propagatedBuildInputs = [
[ botocore
botocore ];
] ++ lib.optional (pythonOlder "3") futures;
buildInputs = [ buildInputs = [
docutils docutils
mock mock
nose pytestCheckHook
coverage
wheel wheel
unittest2
]; ];
checkPhase = '' disabledTestPaths = [
pushd s3transfer/tests # Requires network access
nosetests -v unit/ functional/ "tests/integration/test_copy.py"
popd "tests/integration/test_delete.py"
''; "tests/integration/test_download.py"
"tests/integration/test_processpool.py"
"tests/integration/test_s3transfer.py"
"tests/integration/test_upload.py"
];
# version on pypi has no tests/ dir pythonImportsCheck = [
doCheck = false; "s3transfer"
];
meta = with lib; { meta = with lib; {
description = "Library for managing Amazon S3 transfers";
homepage = "https://github.com/boto/s3transfer"; homepage = "https://github.com/boto/s3transfer";
license = licenses.asl20; license = licenses.asl20;
description = "A library for managing Amazon S3 transfers"; maintainers = with maintainers; [ ];
}; };
} }