2020-06-07 13:32:43 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, certifi, six
|
|
|
|
, setuptools_scm
|
|
|
|
}:
|
2017-06-25 08:32:05 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylast";
|
2020-10-15 10:59:55 +01:00
|
|
|
version = "4.0.0";
|
2017-06-25 08:32:05 +01:00
|
|
|
|
2019-03-19 21:49:53 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2017-06-25 08:32:05 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-15 10:59:55 +01:00
|
|
|
sha256 = "8ec555d6c4c1b474e9b3c96c3786abd38303a1a5716d928b0f3cfdcb4499b093";
|
2017-06-25 08:32:05 +01:00
|
|
|
};
|
|
|
|
|
2020-06-07 13:32:43 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2017-06-25 08:32:05 +01:00
|
|
|
propagatedBuildInputs = [ certifi six ];
|
|
|
|
|
|
|
|
# tests require last.fm credentials
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pylast/pylast";
|
2017-06-25 08:32:05 +01:00
|
|
|
description = "A python interface to last.fm (and compatibles)";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
|
|
};
|
|
|
|
}
|