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

52 lines
1.3 KiB
Nix
Raw Normal View History

2017-12-30 12:24:45 +01:00
{ stdenv, buildPythonPackage, fetchPypi, jinja2, werkzeug, flask
, requests, pytz, backports_tempfile, cookies, jsondiff, botocore, aws-xray-sdk, docker
, six, boto, httpretty, xmltodict, nose, sure, boto3, freezegun, dateutil, mock, pyaml }:
2017-09-15 15:15:54 +02:00
buildPythonPackage rec {
pname = "moto";
2018-04-04 20:11:20 +02:00
version = "1.3.1";
2017-12-30 12:24:45 +01:00
2017-09-15 15:15:54 +02:00
src = fetchPypi {
inherit pname version;
2018-04-04 20:11:20 +02:00
sha256 = "e6b25a32b61ba97bbc2236960ad6865ab111962a927de720c907475adff4499b";
2017-09-15 15:15:54 +02:00
};
2018-04-07 12:25:04 +02:00
postPatch = ''
# dateutil upper bound was just to keep compatibility with Python 2.6
# see https://github.com/spulec/moto/pull/1519 and https://github.com/boto/botocore/pull/1402
# regarding aws-xray-sdk: https://github.com/spulec/moto/commit/31eac49e1555c5345021a252cb0c95043197ea16
substituteInPlace setup.py \
--replace "python-dateutil<2.7.0" "python-dateutil<3.0.0" \
--replace "aws-xray-sdk<0.96," "aws-xray-sdk"
'';
2017-09-15 15:15:54 +02:00
propagatedBuildInputs = [
2017-12-30 12:24:45 +01:00
aws-xray-sdk
2017-09-15 15:15:54 +02:00
boto
2017-12-30 12:24:45 +01:00
boto3
2017-09-15 15:15:54 +02:00
dateutil
flask
httpretty
jinja2
pytz
werkzeug
requests
six
xmltodict
2017-12-30 12:24:45 +01:00
mock
pyaml
backports_tempfile
cookies
jsondiff
botocore
docker
2017-09-15 15:15:54 +02:00
];
checkInputs = [ boto3 nose sure freezegun ];
checkPhase = "nosetests";
# TODO: make this true; I think lots of the tests want network access but we can probably run the others
doCheck = false;
}