1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
requests,
|
|
responses,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lyricwikia";
|
|
version = "0.1.11";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|