python38Packages.scrapy-fake-useragent: fix build
This commit is contained in:
parent
79d98706cd
commit
71e7f74ca6
@ -1,17 +1,20 @@
|
|||||||
{ stdenv, fetchPypi, buildPythonPackage, pytest, fake-useragent, scrapy }:
|
{ stdenv, fetchFromGitHub, buildPythonPackage, pytestCheckHook, pytestcov, pytest-mock, fake-useragent, faker, scrapy }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "scrapy-fake-useragent";
|
pname = "scrapy-fake-useragent";
|
||||||
version = "1.4.4";
|
version = "1.4.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
# PyPi tarball is corrupted
|
||||||
inherit pname version;
|
src = fetchFromGitHub {
|
||||||
sha256 = "3b17e982e646918dc25080da0672812d07bfb7a92a58377c014c74e0182c665e";
|
owner = "alecxe";
|
||||||
|
repo = pname;
|
||||||
|
rev = "59c20d38c58c76618164760d546aa5b989a79b8b"; # no tags
|
||||||
|
sha256 = "0yb7d51jws665rdfqkmi077w0pjxmb2ni7ysphj7lx7b18whq54j";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ fake-useragent ];
|
propagatedBuildInputs = [ fake-useragent faker ];
|
||||||
|
|
||||||
checkInputs = [ pytest scrapy ];
|
checkInputs = [ pytestCheckHook scrapy pytestcov pytest-mock ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Random User-Agent middleware based on fake-useragent";
|
description = "Random User-Agent middleware based on fake-useragent";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user