1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8 requests,
9 responses,
10 six,
11}:
12
13buildPythonPackage rec {
14 pname = "lyricwikia";
15 version = "0.1.11";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "enricobacis";
22 repo = "lyricwikia";
23 tag = version;
24 hash = "sha256-P88DrRAa2zptt8JLy0/PLi0oZ/BghF/XGSP0kOObi7E=";
25 };
26
27 postPatch = ''
28 substituteInPlace setup.py \
29 --replace "'pytest-runner'" ""
30 '';
31
32 propagatedBuildInputs = [
33 beautifulsoup4
34 requests
35 six
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 responses
41 ];
42
43 pythonImportsCheck = [ "lyricwikia" ];
44
45 disabledTests = [
46 # Test requires network access
47 "test_integration"
48 ];
49
50 meta = with lib; {
51 description = "LyricWikia API for song lyrics";
52 mainProgram = "lyrics";
53 homepage = "https://github.com/enricobacis/lyricwikia";
54 changelog = "https://github.com/enricobacis/lyricwikia/releases/tag/${version}";
55 license = licenses.mit;
56 maintainers = with maintainers; [ kmein ];
57 };
58}