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