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, { stdenv,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchFromGitHub,
isPy3k, isPy3k,
pythonOlder, pythonOlder,
lib, lib,
requests, requests,
future, future,
enum34 }: enum34,
mock }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "linode-api"; pname = "linode-api";
version = "4.1.8b1"; # NOTE: this is a beta, and the API may change in future versions. version = "4.1.8b1"; # NOTE: this is a beta, and the API may change in future versions.
name = "${pname}-${version}";
disabled = (pythonOlder "2.7"); disabled = (pythonOlder "2.7");
@ -22,11 +22,15 @@ buildPythonPackage rec {
sed -i -e '/"enum34",/d' setup.py 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 { # Sources from Pypi exclude test fixtures
inherit pname version; src = fetchFromGitHub {
sha256 = "0afwqccbdmdnjc3glvn65qz0pmrbs3fa89z3wig2w4v15608p20s"; rev = "v${version}";
owner = "linode";
repo = "python-linode-api";
sha256 = "0qfqn92fr876dncwbkf2vhm90hnf7lwpg80hzwyzyzwz1hcngvjg";
}; };
meta = { meta = {