From 945872dc193e4c445cee477858092692eb96ef69 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sat, 23 Jan 2016 21:32:23 +0100 Subject: [PATCH] pythonPackages.fasteners: fix test runner --- pkgs/top-level/python-packages.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 104fc3181554..249c2119fcf5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13649,7 +13649,14 @@ in modules // { sha256 = "0nghdq3zihiqg10dp76ls7yn44m5wjncyz7fk8isagkrspkh9a3n"; }; - propagatedBuildInputs = with self; [ six monotonic ]; + propagatedBuildInputs = with self; [ six monotonic testtools ]; + + checkPhase = '' + ${python.interpreter} -m unittest discover + ''; + # Tests are written for Python 3.x only (concurrent.futures) + doCheck = isPy3k; + meta = with stdenv.lib; { description = "Fasteners";