22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
49 lines
859 B
Nix
49 lines
859 B
Nix
{ 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 ];
|
|
};
|
|
}
|