aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/robot-detection/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/robot-detection/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/robot-detection/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/robot-detection/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/robot-detection/default.nix
new file mode 100644
index 000000000000..5cf864cd8019
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/robot-detection/default.nix
@@ -0,0 +1,22 @@
+{ 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";
+ homepage = "https://github.com/rory/robot-detection";
+ license = licenses.gpl3Plus;
+ };
+}