about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pylast
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-03-18 10:21:12 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-03-18 10:21:12 +0100
commit35abe19ff00482f3f527991499d8936dc52aebe9 (patch)
tree2c0b3e060e102fdb9d10924580d4923e826acd92 /pkgs/development/python-modules/pylast
parentf70cac3b3d4a22917fc366deda16fa2e0933a27d (diff)
python3Packages.pylast: enable tests
Diffstat (limited to 'pkgs/development/python-modules/pylast')
-rw-r--r--pkgs/development/python-modules/pylast/default.nix21
1 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/pylast/default.nix b/pkgs/development/python-modules/pylast/default.nix
index 6aee07db8a83d..b16ea62717a52 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
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+    flaky
+  ];
 
-  # tests require last.fm credentials
-  doCheck = false;
+  pythonImportsCheck = [ "pylast" ];
 
   meta = with lib; {
     description = "Python interface to last.fm (and compatibles)";