Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, beautifulsoup4 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, requests 8, responses 9, six 10}: 11 12buildPythonPackage rec { 13 pname = "lyricwikia"; 14 version = "0.1.11"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "enricobacis"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-P88DrRAa2zptt8JLy0/PLi0oZ/BghF/XGSP0kOObi7E="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace "'pytest-runner'" "" 29 ''; 30 31 propagatedBuildInputs = [ 32 beautifulsoup4 33 requests 34 six 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 responses 40 ]; 41 42 pythonImportsCheck = [ 43 "lyricwikia" 44 ]; 45 46 disabledTests = [ 47 # Test requires network access 48 "test_integration" 49 ]; 50 51 meta = with lib; { 52 description = "LyricWikia API for song 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}