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