Skip to content

Commit 3ab4aba

Browse files
authored
python3Packages.lrclibapi: init at 0.3.1 (NixOS#373542)
2 parents e272e72 + 85861a4 commit 3ab4aba

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
poetry-core,
6+
requests,
7+
vcrpy,
8+
pytestCheckHook,
9+
}:
10+
buildPythonPackage rec {
11+
pname = "lrclibapi";
12+
version = "0.3.1";
13+
pyproject = true;
14+
15+
src = fetchFromGitHub {
16+
owner = "Dr-Blank";
17+
repo = "lrclibapi";
18+
tag = "v${version}";
19+
hash = "sha256-K5wO3BexftnWe48loaW8TjySQvh2X+X3GSmG5qg+BGc=";
20+
};
21+
22+
build-system = [
23+
poetry-core
24+
];
25+
26+
dependencies = [
27+
requests
28+
];
29+
30+
pythonImportsCheck = [
31+
"lrclib"
32+
];
33+
34+
nativeCheckInputs = [
35+
pytestCheckHook
36+
vcrpy
37+
];
38+
39+
meta = {
40+
homepage = "https://github.com/Dr-Blank/lrclibapi";
41+
changelog = "https://github.com/Dr-Blank/lrclibapi/releases/tag/v${version}";
42+
description = "Python wrapper for downloading synced lyrics from the lrclib.net api";
43+
license = lib.licenses.mit;
44+
maintainers = with lib.maintainers; [ DataHearth ];
45+
};
46+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7735,6 +7735,8 @@ self: super: with self; {
77357735

77367736
lrcalc-python = callPackage ../development/python-modules/lrcalc-python { };
77377737

7738+
lrclibapi = callPackage ../development/python-modules/lrclibapi { };
7739+
77387740
lru-dict = callPackage ../development/python-modules/lru-dict { };
77397741

77407742
lsassy = callPackage ../development/python-modules/lsassy { };

0 commit comments

Comments
 (0)