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";
|
2020-11-04 14:04:21 +00:00
|
|
|
version = "1.21.4";
|
2018-11-29 12:20:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:04:21 +00:00
|
|
|
sha256 = "fb3580272cc66ba0fd59914b7ac395d2da6b9b32b11dc7557aa80a0ae7cccf3c";
|
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 \
|
2020-02-22 18:06:41 +00:00
|
|
|
--replace 'pip>=9,<=19.4' 'pip' \
|
2018-11-29 12:20:46 +00:00
|
|
|
--replace 'typing==3.6.4' 'typing' \
|
|
|
|
--replace 'attrs==17.4.0' 'attrs' \
|
|
|
|
--replace 'click>=6.6,<7.0' 'click'
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|