2020-06-07 19:21:54 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, pytest, fake-useragent, scrapy }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scrapy-fake-useragent";
|
2020-08-16 18:31:15 +01:00
|
|
|
version = "1.4.4";
|
2020-06-07 19:21:54 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:15 +01:00
|
|
|
sha256 = "3b17e982e646918dc25080da0672812d07bfb7a92a58377c014c74e0182c665e";
|
2020-06-07 19:21:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ fake-useragent ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest scrapy ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Random User-Agent middleware based on fake-useragent";
|
|
|
|
homepage = "https://github.com/alecxe/scrapy-fake-useragent";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|