From 35abe19ff00482f3f527991499d8936dc52aebe9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Mar 2021 10:21:12 +0100 Subject: [PATCH] python3Packages.pylast: enable tests --- .../python-modules/pylast/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pylast/default.nix b/pkgs/development/python-modules/pylast/default.nix index 6aee07db8a83..b16ea62717a5 100644 --- a/pkgs/development/python-modules/pylast/default.nix +++ b/pkgs/development/python-modules/pylast/default.nix @@ -1,10 +1,12 @@ { lib , buildPythonPackage -, fetchPypi , certifi -, six -, setuptools-scm +, fetchPypi +, flaky +, pytestCheckHook , pythonOlder +, setuptools-scm +, six }: buildPythonPackage rec { @@ -19,10 +21,17 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ certifi six ]; + propagatedBuildInputs = [ + certifi + six + ]; - # tests require last.fm credentials - doCheck = false; + checkInputs = [ + pytestCheckHook + flaky + ]; + + pythonImportsCheck = [ "pylast" ]; meta = with lib; { description = "Python interface to last.fm (and compatibles)";