pythonPackages.vcrpy: enable tests

This commit is contained in:
Jörg Thalheim 2017-04-27 08:29:59 +02:00
parent c797550957
commit 237d61939d
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -1,6 +1,17 @@
{ lib, pkgs, pythonPackages }:
{ buildPythonPackage
, lib
, pkgs
, pyyaml
, mock
, contextlib2
, wrapt
, pytest_27
, httpbin
, pytest-httpbin
, yarl
}:
pythonPackages.buildPythonPackage rec {
buildPythonPackage rec {
version = "1.10.5";
name = "vcrpy-${version}";
@ -9,7 +20,7 @@ pythonPackages.buildPythonPackage rec {
sha256 = "12kncg6jyvj15mi8ca74514f2x1ih753nhyz769nwvh39r468167";
};
buildInputs = with pythonPackages; [
buildInputs = [
pyyaml
mock
contextlib2
@ -17,8 +28,13 @@ pythonPackages.buildPythonPackage rec {
pytest_27
httpbin
pytest-httpbin
yarl
];
checkPhase = ''
py.test --ignore=tests/integration -k "TestVCRConnection.testing_connect"
'';
meta = with lib; {
description = "Automatically mock your HTTP interactions to simplify and speed up testing";
homepage = https://github.com/kevin1024/vcrpy;