pythonPackges.pyrax: enable tests

This commit is contained in:
Jörg Thalheim
2017-03-09 10:52:37 +01:00
parent a9aeb1039a
commit d639498ed9
2 changed files with 11 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchurl, requests2, novaclient, keyring,
rackspace-novaclient, six, isPy3k }:
rackspace-novaclient, six, isPy3k, pytest, glibcLocales }:
buildPythonPackage rec {
name = "pyrax-1.9.8";
@@ -17,6 +17,13 @@ buildPythonPackage rec {
disabled = isPy3k;
propagatedBuildInputs = [ requests2 novaclient keyring rackspace-novaclient six ];
LC_ALL = "en_US.UTF-8";
buildInputs = [ pytest glibcLocales ];
checkPhase = ''
py.test tests/unit
'';
meta = {
homepage = "https://github.com/rackspace/pyrax";
license = lib.licenses.asl20;