pythonPackages.keyrings-alt: run tests

This commit is contained in:
Robert Schütz 2018-05-27 19:30:53 +02:00
parent ec632ec3b6
commit 1e815b50c9

View File

@ -1,5 +1,5 @@
{ stdenv, buildPythonPackage, fetchPypi, six { stdenv, buildPythonPackage, fetchPypi, pythonOlder, six
, pytest, unittest2, mock, keyring, setuptools_scm , pytest, pytest-flake8, backports_unittest-mock, keyring, setuptools_scm
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -15,8 +15,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [ six ]; propagatedBuildInputs = [ six ];
# Fails with "ImportError: cannot import name mock" # Fails with "ImportError: cannot import name mock"
doCheck = false; #doCheck = false;
checkInputs = [ pytest unittest2 mock keyring ]; checkInputs = [ pytest pytest-flake8 keyring ] ++ stdenv.lib.optional (pythonOlder "3.3") backports_unittest-mock;
checkPhase = ''
py.test
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
license = licenses.mit; license = licenses.mit;