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