Merge pull request #237065 from fabaff/lyricwikia-pytest-runner
python311Packages.lyricwikia: remove pytest-runner
This commit is contained in:
commit
2f60354372
1 changed files with 46 additions and 11 deletions
|
@ -1,23 +1,58 @@
|
||||||
{ lib, fetchPypi, buildPythonPackage, pytest-runner, six, beautifulsoup4, requests, }:
|
{ lib
|
||||||
|
, beautifulsoup4
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, responses
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "lyricwikia";
|
pname = "lyricwikia";
|
||||||
version = "0.1.11";
|
version = "0.1.11";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.7";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "0l5lkvr3299x79i7skdiggp67rzgax3s00psd1zqkxfysq27jvc8";
|
src = fetchFromGitHub {
|
||||||
|
owner = "enricobacis";
|
||||||
|
repo = pname;
|
||||||
|
rev = "refs/tags/${version}";
|
||||||
|
hash = "sha256-P88DrRAa2zptt8JLy0/PLi0oZ/BghF/XGSP0kOObi7E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest-runner ];
|
postPatch = ''
|
||||||
propagatedBuildInputs = [ six beautifulsoup4 requests ];
|
substituteInPlace setup.py \
|
||||||
# upstream has no code tests
|
--replace "'pytest-runner'" ""
|
||||||
doCheck = false;
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
beautifulsoup4
|
||||||
|
requests
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
responses
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"lyricwikia"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Test requires network access
|
||||||
|
"test_integration"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/enricobacis/lyricwikia";
|
|
||||||
maintainers = [ maintainers.kmein ];
|
|
||||||
description = "LyricWikia API for song lyrics";
|
description = "LyricWikia API for song lyrics";
|
||||||
|
homepage = "https://github.com/enricobacis/lyricwikia";
|
||||||
|
changelog = "https://github.com/enricobacis/lyricwikia/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.all;
|
maintainers = with maintainers; [ kmein ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue