81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
49 lines
865 B
Nix
49 lines
865 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, certifi
|
|
, fetchPypi
|
|
, flaky
|
|
, importlib-metadata
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylast";
|
|
version = "4.5.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-YoALculx2trEDD1vU4xhiCGdb1OFPdxI1p2fwlZZAY8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
] ++ 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 ];
|
|
};
|
|
}
|