your_spotify: 1.11.0 -> 1.12.0 (#366529)
[NixPkgs.git] / pkgs / development / python-modules / lyricwikia / default.nix
bloba465014b59516d3759ec772e0f61bd99042cd6ba
2   lib,
3   beautifulsoup4,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pytestCheckHook,
7   pythonOlder,
8   requests,
9   responses,
10   six,
13 buildPythonPackage rec {
14   pname = "lyricwikia";
15   version = "0.1.11";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "enricobacis";
22     repo = pname;
23     tag = version;
24     hash = "sha256-P88DrRAa2zptt8JLy0/PLi0oZ/BghF/XGSP0kOObi7E=";
25   };
27   postPatch = ''
28     substituteInPlace setup.py \
29       --replace "'pytest-runner'" ""
30   '';
32   propagatedBuildInputs = [
33     beautifulsoup4
34     requests
35     six
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40     responses
41   ];
43   pythonImportsCheck = [ "lyricwikia" ];
45   disabledTests = [
46     # Test requires network access
47     "test_integration"
48   ];
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   };