python312Packages.scrapy-fake-useragent: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-24 18:50:27 +02:00
parent 156a6031d9
commit 1373e907d5

View File

@ -1,9 +1,11 @@
{
lib,
buildPythonPackage,
setuptools,
fake-useragent,
faker,
fetchFromGitHub,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
pythonOlder,
@ -13,7 +15,7 @@
buildPythonPackage rec {
pname = "scrapy-fake-useragent";
version = "1.4.4";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -27,15 +29,18 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pytest.ini \
--replace " --cov=scrapy_fake_useragent --cov-report=term --cov-report=html --fulltrace" ""
--replace-fail " --fulltrace" ""
'';
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
fake-useragent
faker
];
nativeCheckInputs = [
pytest-cov-stub
pytest-mock
pytestCheckHook
scrapy