summary refs log tree commit diff
path: root/pkgs/development/python-modules/packaging
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-02-18 19:31:39 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-02-18 20:07:43 +0100
commit05c13dfca1ebfd9b326b4ac92526c5b17e225ccb (patch)
treeb2d336fa63900cd0ce67a5e56a8c4536c3f56381 /pkgs/development/python-modules/packaging
parentd800601ae5fa792c3b1582ac28787d324b772b8a (diff)
downloadnixpkgs-05c13dfca1ebfd9b326b4ac92526c5b17e225ccb.tar
nixpkgs-05c13dfca1ebfd9b326b4ac92526c5b17e225ccb.tar.gz
nixpkgs-05c13dfca1ebfd9b326b4ac92526c5b17e225ccb.tar.bz2
nixpkgs-05c13dfca1ebfd9b326b4ac92526c5b17e225ccb.tar.lz
nixpkgs-05c13dfca1ebfd9b326b4ac92526c5b17e225ccb.tar.xz
nixpkgs-05c13dfca1ebfd9b326b4ac92526c5b17e225ccb.tar.zst
nixpkgs-05c13dfca1ebfd9b326b4ac92526c5b17e225ccb.zip
python.pkgs.packaging: fix tests
Diffstat (limited to 'pkgs/development/python-modules/packaging')
-rw-r--r--pkgs/development/python-modules/packaging/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/packaging/default.nix b/pkgs/development/python-modules/packaging/default.nix
index 4ba93bb57f2..f335bfa135f 100644
--- a/pkgs/development/python-modules/packaging/default.nix
+++ b/pkgs/development/python-modules/packaging/default.nix
@@ -4,7 +4,6 @@
 buildPythonPackage rec {
   pname = "packaging";
   version = "16.8";
-  name = "${pname}-${version}";
 
   src = fetchPypi {
     inherit pname version;
@@ -13,7 +12,11 @@ buildPythonPackage rec {
 
   propagatedBuildInputs = [ pyparsing six ];
 
-  buildInputs = [ pytest pretend ];
+  checkInputs = [ pytest pretend ];
+
+  checkPhase = ''
+    py.test tests
+  '';
 
   meta = with stdenv.lib; {
     description = "Core utilities for Python packages";