Skip to content

Commit 85861a4

Browse files
committed
python3Packages.lrclibapi: init at 0.3.1
1 parent ee2a1b0 commit 85861a4

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
@@ -7713,6 +7713,8 @@ self: super: with self; {
77137713

77147714
lrcalc-python = callPackage ../development/python-modules/lrcalc-python { };
77157715

7716+
lrclibapi = callPackage ../development/python-modules/lrclibapi { };
7717+
77167718
lru-dict = callPackage ../development/python-modules/lru-dict { };
77177719

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

0 commit comments

Comments
 (0)