summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-03-09 10:52:37 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-03-09 11:01:58 +0100
commitd639498ed9da1001663b86efc14e1c751f384863 (patch)
treefe46cf0d2aad94e8a1297061a98da1ea27ad9d01 /pkgs
parenta9aeb1039a44a8b1ae30ef8f5fdf54ff62ba3f98 (diff)
downloadnixlib-d639498ed9da1001663b86efc14e1c751f384863.tar
nixlib-d639498ed9da1001663b86efc14e1c751f384863.tar.gz
nixlib-d639498ed9da1001663b86efc14e1c751f384863.tar.bz2
nixlib-d639498ed9da1001663b86efc14e1c751f384863.tar.lz
nixlib-d639498ed9da1001663b86efc14e1c751f384863.tar.xz
nixlib-d639498ed9da1001663b86efc14e1c751f384863.tar.zst
nixlib-d639498ed9da1001663b86efc14e1c751f384863.zip
pythonPackges.pyrax: enable tests
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/pyrax.nix9
-rw-r--r--pkgs/top-level/python-packages.nix4
2 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pyrax.nix b/pkgs/development/python-modules/pyrax.nix
index b0fc29d3cc94..0abf54f03fe1 100644
--- a/pkgs/development/python-modules/pyrax.nix
+++ b/pkgs/development/python-modules/pyrax.nix
@@ -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;
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 5559b0547a0e..49f5a48476ec 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -21556,7 +21556,9 @@ in {
 
   rackspace-novaclient = callPackage ../development/python-modules/rackspace-novaclient.nix { };
 
-  pyrax = callPackage ../development/python-modules/pyrax.nix { };
+  pyrax = callPackage ../development/python-modules/pyrax.nix {
+    glibcLocales = pkgs.glibcLocales;
+  };
 
   pyreport = buildPythonPackage (rec {
     name = "pyreport-0.3.4c";