mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
pythonPackages.boto3: enable tests, fixes #14985
I've modified #14985 by @adnelson to take into account the update in
b68f09a520
This commit is contained in:
parent
e8803166ef
commit
8729bd8bb9
|
@ -2490,16 +2490,17 @@ in modules // {
|
||||||
sha256 = "1rbwcslk9dgayrg3vy3m0bqj767hdy1aphy5wjgz925bsydgxdg6";
|
sha256 = "1rbwcslk9dgayrg3vy3m0bqj767hdy1aphy5wjgz925bsydgxdg6";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ self.botocore
|
propagatedBuildInputs = [ self.botocore self.jmespath ] ++
|
||||||
self.jmespath
|
(if isPy3k then [] else [self.futures_2_2]);
|
||||||
] ++ (if isPy3k then [] else [self.futures_2_2]);
|
|
||||||
buildInputs = [ self.docutils self.nose self.mock ];
|
buildInputs = [ self.docutils self.nose self.mock ];
|
||||||
|
checkPhase = ''
|
||||||
# Tests are failing with `botocore.exceptions.NoCredentialsError:
|
runHook preCheck
|
||||||
# Unable to locate credentials`. There also seems to be some mock
|
# This method is not in mock. It might have appeared in some versions.
|
||||||
# issues (`assert_called_once` doesn't exist in mock but boto
|
sed -i 's/action.assert_called_once()/self.assertEqual(action.call_count, 1)/' \
|
||||||
# seems to think it is?).
|
tests/unit/resources/test_factory.py
|
||||||
doCheck = false;
|
nosetests -d tests/unit --verbose
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://github.com/boto3/boto;
|
homepage = https://github.com/boto3/boto;
|
||||||
|
|
Loading…
Reference in a new issue