forked from mirrors/nixpkgs
71 lines
1.2 KiB
Nix
71 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, attrs
|
|
, botocore
|
|
, click
|
|
, enum-compat
|
|
, hypothesis
|
|
, inquirer
|
|
, jmespath
|
|
, mock
|
|
, mypy-extensions
|
|
, pip
|
|
, pytest
|
|
, pyyaml
|
|
, setuptools
|
|
, six
|
|
, typing ? null
|
|
, watchdog
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chalice";
|
|
version = "1.22.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5a84a73c4a8d8b22bb64e06ff99060d7f222097db4237e58749dcad5165f082d";
|
|
};
|
|
|
|
checkInputs = [ watchdog pytest hypothesis mock ];
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
botocore
|
|
click
|
|
enum-compat
|
|
inquirer
|
|
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 ];
|
|
};
|
|
}
|