depot/third_party/nixpkgs/pkgs/development/python-modules/syncedlyrics/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

55 lines
1 KiB
Nix

{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, rapidfuzz
, requests
}:
buildPythonPackage rec {
pname = "syncedlyrics";
version = "0.4.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rtcq";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-dH9irIah9CdZ9Kv7bIymP1o5ifWEYCiSqegUpu8Y+Tg=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
rapidfuzz
beautifulsoup4
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"syncedlyrics"
];
pytestFlagsArray = [
"test.py::test_all_providers"
];
meta = with lib; {
description = "Module to get LRC format (synchronized) lyrics";
homepage = "https://github.com/rtcq/syncedlyrics";
changelog = "https://github.com/rtcq/syncedlyrics/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}