pythonPackages.linode-api: Enable tests

This commit is contained in:
adisbladis 2018-03-30 12:55:05 +08:00
parent 0fc0f28d39
commit 78206eb3ec
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

View File

@ -1,17 +1,17 @@
{ stdenv,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
isPy3k,
pythonOlder,
lib,
requests,
future,
enum34 }:
enum34,
mock }:
buildPythonPackage rec {
pname = "linode-api";
version = "4.1.8b1"; # NOTE: this is a beta, and the API may change in future versions.
name = "${pname}-${version}";
disabled = (pythonOlder "2.7");
@ -22,11 +22,15 @@ buildPythonPackage rec {
sed -i -e '/"enum34",/d' setup.py
'');
doCheck = false; # This library does not have any tests at this point.
doCheck = true;
checkInputs = [ mock ];
src = fetchPypi {
inherit pname version;
sha256 = "0afwqccbdmdnjc3glvn65qz0pmrbs3fa89z3wig2w4v15608p20s";
# Sources from Pypi exclude test fixtures
src = fetchFromGitHub {
rev = "v${version}";
owner = "linode";
repo = "python-linode-api";
sha256 = "0qfqn92fr876dncwbkf2vhm90hnf7lwpg80hzwyzyzwz1hcngvjg";
};
meta = {