Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python.pkgs.boto3: move expression

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