33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
24 lines
760 B
Nix
24 lines
760 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage, pytestCheckHook, pytest-cov, pytest-mock, fake-useragent, faker, scrapy }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scrapy-fake-useragent";
|
|
version = "1.4.4";
|
|
|
|
# PyPi tarball is corrupted
|
|
src = fetchFromGitHub {
|
|
owner = "alecxe";
|
|
repo = pname;
|
|
rev = "59c20d38c58c76618164760d546aa5b989a79b8b"; # no tags
|
|
sha256 = "0yb7d51jws665rdfqkmi077w0pjxmb2ni7ysphj7lx7b18whq54j";
|
|
};
|
|
|
|
propagatedBuildInputs = [ fake-useragent faker ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook scrapy pytest-cov pytest-mock ];
|
|
|
|
meta = with lib; {
|
|
description = "Random User-Agent middleware based on fake-useragent";
|
|
homepage = "https://github.com/alecxe/scrapy-fake-useragent";
|
|
license = licenses.mit;
|
|
};
|
|
}
|