tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.boto3: move expression
Frederik Rietdijk
8 years ago
0619b375
931d7d60
+51
-37
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
boto3
default.nix
top-level
python-packages.nix
+50
pkgs/development/python-modules/boto3/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, botocore
5
5
+
, jmespath
6
6
+
, s3transfer
7
7
+
, futures
8
8
+
, docutils
9
9
+
, nose
10
10
+
, mock
11
11
+
, isPy3k
12
12
+
}:
13
13
+
14
14
+
buildPythonPackage rec {
15
15
+
pname = "boto3";
16
16
+
version = "1.4.8";
17
17
+
18
18
+
src = fetchFromGitHub {
19
19
+
owner = "boto";
20
20
+
repo = "boto3";
21
21
+
rev = version;
22
22
+
sha256 = "11ysd7a9l5y98q7b7az56phsj2m7w90abf4jabwrknp2c43sq9bi";
23
23
+
};
24
24
+
25
25
+
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
26
26
+
checkInputs = [ docutils nose mock ];
27
27
+
28
28
+
checkPhase = ''
29
29
+
runHook preCheck
30
30
+
# This method is not in mock. It might have appeared in some versions.
31
31
+
sed -i 's/action.assert_called_once()/self.assertEqual(action.call_count, 1)/' \
32
32
+
tests/unit/resources/test_factory.py
33
33
+
nosetests -d tests/unit --verbose
34
34
+
runHook postCheck
35
35
+
'';
36
36
+
37
37
+
# Network access
38
38
+
doCheck = false;
39
39
+
40
40
+
meta = {
41
41
+
homepage = https://github.com/boto/boto3;
42
42
+
license = lib.licenses.asl20;
43
43
+
description = "AWS SDK for Python";
44
44
+
longDescription = ''
45
45
+
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
46
46
+
Python, which allows Python developers to write software that makes use of
47
47
+
services like Amazon S3 and Amazon EC2.
48
48
+
'';
49
49
+
};
50
50
+
}
+1
-37
pkgs/top-level/python-packages.nix
···
1979
1979
};
1980
1980
};
1981
1981
1982
1982
-
boto3 = buildPythonPackage rec {
1983
1983
-
name = "boto3-${version}";
1984
1984
-
version = "1.4.8";
1985
1985
-
1986
1986
-
src = pkgs.fetchFromGitHub {
1987
1987
-
owner = "boto";
1988
1988
-
repo = "boto3";
1989
1989
-
rev = version;
1990
1990
-
sha256 = "11ysd7a9l5y98q7b7az56phsj2m7w90abf4jabwrknp2c43sq9bi";
1991
1991
-
};
1992
1992
-
1993
1993
-
propagatedBuildInputs = [ self.botocore self.jmespath self.s3transfer ] ++
1994
1994
-
(if isPy3k then [] else [self.futures]);
1995
1995
-
buildInputs = [ self.docutils self.nose self.mock ];
1996
1996
-
checkPhase = ''
1997
1997
-
runHook preCheck
1998
1998
-
# This method is not in mock. It might have appeared in some versions.
1999
1999
-
sed -i 's/action.assert_called_once()/self.assertEqual(action.call_count, 1)/' \
2000
2000
-
tests/unit/resources/test_factory.py
2001
2001
-
nosetests -d tests/unit --verbose
2002
2002
-
runHook postCheck
2003
2003
-
'';
2004
2004
-
2005
2005
-
# Network access
2006
2006
-
doCheck = false;
2007
2007
-
2008
2008
-
meta = {
2009
2009
-
homepage = https://github.com/boto/boto3;
2010
2010
-
license = stdenv.lib.licenses.asl20;
2011
2011
-
description = "AWS SDK for Python";
2012
2012
-
longDescription = ''
2013
2013
-
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
2014
2014
-
Python, which allows Python developers to write software that makes use of
2015
2015
-
services like Amazon S3 and Amazon EC2.
2016
2016
-
'';
2017
2017
-
};
2018
2018
-
};
1982
1982
+
boto3 = callPackage ../development/python-modules/boto3 { };
2019
1983
2020
1984
botocore = callPackage ../development/python-modules/botocore { };
2021
1985