Files
nixpkgs/pkgs/development/python-modules/lyricwikia/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

59 lines
1.1 KiB
Nix

{
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 = "lyricwikia";
tag = 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 = {
description = "LyricWikia API for song lyrics";
mainProgram = "lyrics";
homepage = "https://github.com/enricobacis/lyricwikia";
changelog = "https://github.com/enricobacis/lyricwikia/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kmein ];
};
}