{ lib , buildPythonPackage , fetchPypi , flaky , httpx , importlib-metadata , pytestCheckHook , pythonOlder , setuptools-scm }: buildPythonPackage rec { pname = "pylast"; version = "5.0.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-UBi2bCtGMtcavYEDtz5m5N0UxmCaj3un5aomxzbfLfg="; }; nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ httpx ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; checkInputs = [ pytestCheckHook flaky ]; pythonImportsCheck = [ "pylast" ]; meta = with lib; { description = "Python interface to last.fm (and compatibles)"; homepage = "https://github.com/pylast/pylast"; license = licenses.asl20; maintainers = with maintainers; [ rvolosatovs ]; }; }