2021-03-18 02:16:05 -07:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
2021-03-18 02:21:12 -07:00
|
|
|
, fetchPypi
|
|
|
|
, flaky
|
|
|
|
, pytestCheckHook
|
2021-03-18 02:16:05 -07:00
|
|
|
, pythonOlder
|
2021-03-18 02:21:12 -07:00
|
|
|
, setuptools-scm
|
|
|
|
, six
|
2020-06-07 05:32:43 -07:00
|
|
|
}:
|
2017-06-25 00:32:05 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylast";
|
2021-05-06 12:31:41 -07:00
|
|
|
version = "4.2.1";
|
2021-03-18 02:16:05 -07:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-03-19 14:49:53 -07:00
|
|
|
|
2017-06-25 00:32:05 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-06 12:31:41 -07:00
|
|
|
sha256 = "sha256-R1enQk6luuBiobMPDn5x1SXx7zUI/5c8dPtyWkmG/18=";
|
2017-06-25 00:32:05 -07:00
|
|
|
};
|
|
|
|
|
2021-03-18 02:16:05 -07:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
2021-03-18 02:21:12 -07:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
flaky
|
|
|
|
];
|
2017-06-25 00:32:05 -07:00
|
|
|
|
2021-03-18 02:21:12 -07:00
|
|
|
pythonImportsCheck = [ "pylast" ];
|
2017-06-25 00:32:05 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2021-03-18 02:16:05 -07:00
|
|
|
description = "Python interface to last.fm (and compatibles)";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/pylast/pylast";
|
2017-06-25 00:32:05 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
|
|
};
|
|
|
|
}
|