439a6efcab
GitOrigin-RevId: f6b5bfdb470d60a876992749d0d708ed7b6b56ca
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, attrs
|
|
, botocore
|
|
, click
|
|
, enum-compat
|
|
, hypothesis
|
|
, jmespath
|
|
, mock
|
|
, mypy-extensions
|
|
, pip
|
|
, pytest
|
|
, pyyaml
|
|
, setuptools
|
|
, six
|
|
, typing
|
|
, watchdog
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chalice";
|
|
version = "1.21.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "312f88838c8ea4b4ac79dce0e5b4ba3125130ca66ea99a4694f535501dca95e3";
|
|
};
|
|
|
|
checkInputs = [ watchdog pytest hypothesis mock ];
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
botocore
|
|
click
|
|
enum-compat
|
|
jmespath
|
|
mypy-extensions
|
|
pip
|
|
pyyaml
|
|
setuptools
|
|
six
|
|
wheel
|
|
] ++ lib.optionals (pythonOlder "3.5") [
|
|
typing
|
|
];
|
|
|
|
# conftest.py not included with pypi release
|
|
doCheck = false;
|
|
|
|
postPatch = ''
|
|
sed -i setup.py -e "/pip>=/c\'pip',"
|
|
substituteInPlace setup.py \
|
|
--replace 'typing==3.6.4' 'typing'
|
|
'';
|
|
|
|
checkPhase = ''
|
|
pytest tests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python Serverless Microframework for AWS";
|
|
homepage = "https://github.com/aws/chalice";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|