2019-08-30 13:23:02 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "robot-detection";
|
|
|
|
version = "0.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1xd2jm3yn31bnk1kqzggils2rxj26ylxsfz3ap7bhr3ilhnbg3rx";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
# no tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library for detecting if a HTTP User Agent header is likely to be a bot";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/rory/robot-detection";
|
2019-08-30 13:23:02 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
}
|