summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Mendez <mmendez534@gmail.com>2019-05-30 17:24:38 -0400
committerManuel Mendez <mmendez534@gmail.com>2019-06-04 12:31:26 -0400
commita02dfde07417ead2ab9b24443f195dc8532b409c (patch)
treeb20e3808bda0d01c33cbc1692e2adfa20511341d
parent70a6962d064c4ad48fe44abe57735de5ab57f1e6 (diff)
pythonPackages.packet-python: enable tests
-rw-r--r--pkgs/development/python-modules/packet-python/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/packet-python/default.nix b/pkgs/development/python-modules/packet-python/default.nix
index e233dfeb086a..61d387590480 100644
--- a/pkgs/development/python-modules/packet-python/default.nix
+++ b/pkgs/development/python-modules/packet-python/default.nix
@@ -5,7 +5,9 @@
, python
# For tests/setup.py
+, pytest
, pytestrunner
+, requests-mock
}:
buildPythonPackage rec {
@@ -17,14 +19,16 @@ buildPythonPackage rec {
};
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ requests ];
+ checkInputs = [
+ pytest
+ pytestrunner
+ requests-mock
+ ];
checkPhase = ''
- ${python.interpreter} -m unittest discover -s test
+ ${python.interpreter} setup.py test
'';
- # Not all test files are included in archive
- doCheck = false;
-
meta = {
description = "A Python client for the Packet API.";
homepage = "https://github.com/packethost/packet-python";