pythonPackages.packet-python: enable tests
This commit is contained in:
parent
70a6962d06
commit
a02dfde074
|
@ -5,7 +5,9 @@
|
||||||
, python
|
, python
|
||||||
|
|
||||||
# For tests/setup.py
|
# For tests/setup.py
|
||||||
|
, pytest
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
|
, requests-mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -17,14 +19,16 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
propagatedBuildInputs = [ requests ];
|
propagatedBuildInputs = [ requests ];
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
pytestrunner
|
||||||
|
requests-mock
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
${python.interpreter} -m unittest discover -s test
|
${python.interpreter} setup.py test
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Not all test files are included in archive
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A Python client for the Packet API.";
|
description = "A Python client for the Packet API.";
|
||||||
homepage = "https://github.com/packethost/packet-python";
|
homepage = "https://github.com/packethost/packet-python";
|
||||||
|
|
Loading…
Reference in New Issue