summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-12-01 21:04:31 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2016-12-01 21:07:33 +0100
commit7d2bc0c2d215bfb9ddd1652bc0e35ca7099833a7 (patch)
tree1fe0756fc429d00431312e46ec333c263f752b95 /pkgs
parent2dba67fbb7da79905e7c865fe70d73a6e034e373 (diff)
downloadnixpkgs-7d2bc0c2d215bfb9ddd1652bc0e35ca7099833a7.tar
nixpkgs-7d2bc0c2d215bfb9ddd1652bc0e35ca7099833a7.tar.gz
nixpkgs-7d2bc0c2d215bfb9ddd1652bc0e35ca7099833a7.tar.bz2
nixpkgs-7d2bc0c2d215bfb9ddd1652bc0e35ca7099833a7.tar.lz
nixpkgs-7d2bc0c2d215bfb9ddd1652bc0e35ca7099833a7.tar.xz
nixpkgs-7d2bc0c2d215bfb9ddd1652bc0e35ca7099833a7.tar.zst
nixpkgs-7d2bc0c2d215bfb9ddd1652bc0e35ca7099833a7.zip
pythonPackages.numtraits: needs six
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/python-packages.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 1777dbad636..3f730ebe77a 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -15899,16 +15899,21 @@ in {
   };
 
   numtraits = buildPythonPackage rec {
-    name = "numtraits-${version}";
+    pname = "numtraits";
     version = "0.2";
+    name = "${pname}-${version}";
 
     src = pkgs.fetchurl {
-      url = "mirror://pypi/n/numtraits/${name}.tar.gz";
+      url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
       sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
     };
 
     buildInputs = with self; [ pytest ];
-    propagatedBuildInputs = with self; [ numpy traitlets];
+    propagatedBuildInputs = with self; [ six numpy traitlets];
+
+    checkPhase = ''
+      py.test
+    '';
 
     meta = {
       description = "Numerical traits for Python objects";