2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flaky,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
httpx,
|
|
|
|
importlib-metadata,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2020-06-15 15:56:04 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylast";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "5.3.0";
|
|
|
|
pyproject = true;
|
2021-12-21 02:18:32 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pylast";
|
2024-06-05 15:53:02 +00:00
|
|
|
repo = "pylast";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-dgqTNISeyBkZ2m68pqw5rsoyPxLW4wWkv6iqq9bD5Ek=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [
|
2022-10-30 15:09:59 +00:00
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
2021-12-21 02:18:32 +00:00
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [ httpx ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-23 19:22:30 +00:00
|
|
|
pytestCheckHook
|
|
|
|
flaky
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pylast" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-23 19:22:30 +00:00
|
|
|
description = "Python interface to last.fm (and compatibles)";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pylast/pylast";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/pylast/pylast/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
fab
|
|
|
|
rvolosatovs
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|