2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-09-25 04:45:31 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, attrs
|
|
|
|
, botocore
|
|
|
|
, click
|
|
|
|
, enum-compat
|
2020-09-25 04:45:31 +00:00
|
|
|
, hypothesis
|
2021-05-20 23:08:51 +00:00
|
|
|
, inquirer
|
2020-04-24 23:36:52 +00:00
|
|
|
, jmespath
|
2020-09-25 04:45:31 +00:00
|
|
|
, mock
|
|
|
|
, mypy-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
, pip
|
2020-09-25 04:45:31 +00:00
|
|
|
, pytest
|
|
|
|
, pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
, setuptools
|
|
|
|
, six
|
2021-04-26 19:14:03 +00:00
|
|
|
, typing ? null
|
2020-04-24 23:36:52 +00:00
|
|
|
, watchdog
|
2020-09-25 04:45:31 +00:00
|
|
|
, wheel
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chalice";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.23.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "8e3b26f8ec15197d8c04cd1edb0d692a490cb5ec179560183a403de63f21c1d7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ watchdog pytest hypothesis mock ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
botocore
|
|
|
|
click
|
|
|
|
enum-compat
|
2021-05-20 23:08:51 +00:00
|
|
|
inquirer
|
2020-04-24 23:36:52 +00:00
|
|
|
jmespath
|
2020-09-25 04:45:31 +00:00
|
|
|
mypy-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
pip
|
2020-09-25 04:45:31 +00:00
|
|
|
pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
wheel
|
2020-09-25 04:45:31 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.5") [
|
2020-04-24 23:36:52 +00:00
|
|
|
typing
|
|
|
|
];
|
|
|
|
|
|
|
|
# conftest.py not included with pypi release
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i setup.py -e "/pip>=/c\'pip',"
|
|
|
|
substituteInPlace setup.py \
|
2021-02-24 18:30:23 +00:00
|
|
|
--replace 'typing==3.6.4' 'typing'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Serverless Microframework for AWS";
|
|
|
|
homepage = "https://github.com/aws/chalice";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|