nixpkgs/pkgs/development/python-modules/chalice/default.nix

71 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2018-11-29 12:20:46 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
2018-11-29 12:20:46 +00:00
, attrs
, botocore
, click
, enum-compat
2020-08-26 06:22:12 +00:00
, hypothesis
, inquirer
2018-11-29 12:20:46 +00:00
, jmespath
2020-08-26 06:22:12 +00:00
, mock
, mypy-extensions
2018-11-29 12:20:46 +00:00
, pip
2020-08-26 06:22:12 +00:00
, pytest
, pyyaml
2018-11-29 12:20:46 +00:00
, setuptools
, six
, typing ? null
2018-11-29 12:20:46 +00:00
, watchdog
2020-08-26 06:22:12 +00:00
, wheel
2018-11-29 12:20:46 +00:00
}:
buildPythonPackage rec {
pname = "chalice";
version = "1.23.0";
2018-11-29 12:20:46 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "8e3b26f8ec15197d8c04cd1edb0d692a490cb5ec179560183a403de63f21c1d7";
2018-11-29 12:20:46 +00:00
};
checkInputs = [ watchdog pytest hypothesis mock ];
propagatedBuildInputs = [
attrs
botocore
click
enum-compat
inquirer
2018-11-29 12:20:46 +00:00
jmespath
2020-08-26 06:22:12 +00:00
mypy-extensions
2018-11-29 12:20:46 +00:00
pip
2020-08-26 06:22:12 +00:00
pyyaml
2018-11-29 12:20:46 +00:00
setuptools
six
wheel
] ++ lib.optionals (pythonOlder "3.5") [
2018-11-29 12:20:46 +00:00
typing
];
# conftest.py not included with pypi release
doCheck = false;
postPatch = ''
sed -i setup.py -e "/pip>=/c\'pip',"
2018-11-29 12:20:46 +00:00
substituteInPlace setup.py \
--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";
homepage = "https://github.com/aws/chalice";
2018-11-29 12:20:46 +00:00
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}