From f70cac3b3d4a22917fc366deda16fa2e0933a27d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Mar 2021 10:16:05 +0100 Subject: [PATCH 1/2] python3Packages.pylast: 4.1.0 -> 4.2.0 --- .../python-modules/pylast/default.nix | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pylast/default.nix b/pkgs/development/python-modules/pylast/default.nix index 26812ff9151..6aee07db8a8 100644 --- a/pkgs/development/python-modules/pylast/default.nix +++ b/pkgs/development/python-modules/pylast/default.nix @@ -1,27 +1,32 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, certifi, six -, setuptools_scm +{ lib +, buildPythonPackage +, fetchPypi +, certifi +, six +, setuptools-scm +, pythonOlder }: buildPythonPackage rec { pname = "pylast"; - version = "4.1.0"; - - disabled = !isPy3k; + version = "4.2.0"; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "ad084aec1bf7e307bc42d7cc1a003851f5bee1ad24fb697a9fdc300bbfe63932"; + sha256 = "sha256-w/mkAUUgj7L7Xv+nz1pI1TYKfihH3S3MbxaNQ4VtoH0="; }; - nativeBuildInputs = [ setuptools_scm ]; + nativeBuildInputs = [ setuptools-scm ]; + propagatedBuildInputs = [ certifi six ]; # tests require last.fm credentials doCheck = false; meta = with lib; { + description = "Python interface to last.fm (and compatibles)"; homepage = "https://github.com/pylast/pylast"; - description = "A python interface to last.fm (and compatibles)"; license = licenses.asl20; maintainers = with maintainers; [ rvolosatovs ]; }; From 35abe19ff00482f3f527991499d8936dc52aebe9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Mar 2021 10:21:12 +0100 Subject: [PATCH 2/2] 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 6aee07db8a8..b16ea62717a 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)";