1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 six,
6}:
7
8buildPythonPackage rec {
9 pname = "robot-detection";
10 version = "0.4";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1xd2jm3yn31bnk1kqzggils2rxj26ylxsfz3ap7bhr3ilhnbg3rx";
16 };
17
18 propagatedBuildInputs = [ six ];
19
20 # no tests in archive
21 doCheck = false;
22
23 meta = with lib; {
24 description = "Library for detecting if a HTTP User Agent header is likely to be a bot";
25 homepage = "https://github.com/rory/robot-detection";
26 license = licenses.gpl3Plus;
27 };
28}