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

65 lines
1.1 KiB
Nix
Raw Normal View History

2018-11-29 13:20:46 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, attrs
, botocore
, click
, enum-compat
, jmespath
, pip
, setuptools
, six
, typing
, wheel
, watchdog
, pytest
, hypothesis
, mock
}:
buildPythonPackage rec {
pname = "chalice";
2019-10-24 08:47:27 +02:00
version = "1.12.0";
2018-11-29 13:20:46 +01:00
src = fetchPypi {
inherit pname version;
2019-10-24 08:47:27 +02:00
sha256 = "f8f929f26df77285a202fb93174400230f8912c5b9c1fb061c7836a78413e325";
2018-11-29 13:20:46 +01:00
};
checkInputs = [ watchdog pytest hypothesis mock ];
propagatedBuildInputs = [
attrs
botocore
click
enum-compat
jmespath
pip
setuptools
six
wheel
typing
];
# conftest.py not included with pypi release
doCheck = false;
postPatch = ''
substituteInPlace setup.py \
--replace 'pip>=9,<=18.1' 'pip' \
2018-11-29 13:20:46 +01: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";
homepage = https://github.com/aws/chalice;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}