mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
python312Packages.scrapy-fake-useragent: modernize
This commit is contained in:
parent
156a6031d9
commit
1373e907d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user