ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
60 lines
1.1 KiB
Nix
60 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 = 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 ];
|
|
};
|
|
}
|