2018-11-29 12:20:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-26 08:44:26 +01:00
|
|
|
, pythonOlder
|
2018-11-29 12:20:46 +00:00
|
|
|
, attrs
|
|
|
|
, botocore
|
|
|
|
, click
|
|
|
|
, enum-compat
|
2020-08-26 07:22:12 +01:00
|
|
|
, hypothesis
|
2018-11-29 12:20:46 +00:00
|
|
|
, jmespath
|
2020-08-26 07:22:12 +01:00
|
|
|
, mock
|
|
|
|
, mypy-extensions
|
2018-11-29 12:20:46 +00:00
|
|
|
, pip
|
2020-08-26 07:22:12 +01:00
|
|
|
, pytest
|
|
|
|
, pyyaml
|
2018-11-29 12:20:46 +00:00
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
, typing
|
|
|
|
, watchdog
|
2020-08-26 07:22:12 +01:00
|
|
|
, wheel
|
2018-11-29 12:20:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chalice";
|
2021-01-18 02:29:17 +00:00
|
|
|
version = "1.21.9";
|
2018-11-29 12:20:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-18 02:29:17 +00:00
|
|
|
sha256 = "312f88838c8ea4b4ac79dce0e5b4ba3125130ca66ea99a4694f535501dca95e3";
|
2018-11-29 12:20:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ watchdog pytest hypothesis mock ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
botocore
|
|
|
|
click
|
|
|
|
enum-compat
|
|
|
|
jmespath
|
2020-08-26 07:22:12 +01:00
|
|
|
mypy-extensions
|
2018-11-29 12:20:46 +00:00
|
|
|
pip
|
2020-08-26 07:22:12 +01:00
|
|
|
pyyaml
|
2018-11-29 12:20:46 +00:00
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
wheel
|
2020-08-26 08:44:26 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.5") [
|
2018-11-29 12:20:46 +00:00
|
|
|
typing
|
|
|
|
];
|
|
|
|
|
|
|
|
# conftest.py not included with pypi release
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-02-22 18:06:41 +00:00
|
|
|
sed -i setup.py -e "/pip>=/c\'pip',"
|
2018-11-29 12:20:46 +00:00
|
|
|
substituteInPlace setup.py \
|
2021-02-22 07:41:19 +00:00
|
|
|
--replace 'typing==3.6.4' 'typing'
|
2018-11-29 12:20:46 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Serverless Microframework for AWS";
|
2020-04-02 01:51:29 +01:00
|
|
|
homepage = "https://github.com/aws/chalice";
|
2018-11-29 12:20:46 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|