summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/robot-detection/default.nix
blob: b343afa58f6e56ed34d8d10c35eed36a76762539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  lib,
  buildPythonPackage,
  fetchPypi,
  six,
}:

buildPythonPackage rec {
  pname = "robot-detection";
  version = "0.4";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1xd2jm3yn31bnk1kqzggils2rxj26ylxsfz3ap7bhr3ilhnbg3rx";
  };

  propagatedBuildInputs = [ six ];

  # no tests in archive
  doCheck = false;

  meta = {
    description = "Library for detecting if a HTTP User Agent header is likely to be a bot";
    homepage = "https://github.com/rory/robot-detection";
    license = lib.licenses.gpl3Plus;
  };
}