summary refs log tree commit diff
path: root/pkgs/development/python-modules/user-agents
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-01-13 23:01:06 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-01-14 14:10:01 +0100
commit9121a973667a407be156fafa95f0fc59927624ef (patch)
treed101627fb4641ae97636e22b3785854fa096193e /pkgs/development/python-modules/user-agents
parent3eb0ddcfc41fb88b8570919b90ed8851700238a2 (diff)
downloadnixpkgs-9121a973667a407be156fafa95f0fc59927624ef.tar
nixpkgs-9121a973667a407be156fafa95f0fc59927624ef.tar.gz
nixpkgs-9121a973667a407be156fafa95f0fc59927624ef.tar.bz2
nixpkgs-9121a973667a407be156fafa95f0fc59927624ef.tar.lz
nixpkgs-9121a973667a407be156fafa95f0fc59927624ef.tar.xz
nixpkgs-9121a973667a407be156fafa95f0fc59927624ef.tar.zst
nixpkgs-9121a973667a407be156fafa95f0fc59927624ef.zip
pythonPackages.user-agents: init at 1.1.0
Diffstat (limited to 'pkgs/development/python-modules/user-agents')
-rw-r--r--pkgs/development/python-modules/user-agents/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/user-agents/default.nix b/pkgs/development/python-modules/user-agents/default.nix
new file mode 100644
index 00000000000..6b14eebb310
--- /dev/null
+++ b/pkgs/development/python-modules/user-agents/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub, ua-parser }:
+
+buildPythonPackage rec {
+  pname = "user-agents";
+  version = "1.1.0";
+
+  # PyPI is missing devices.json
+  src = fetchFromGitHub {
+    owner = "selwin";
+    repo = "python-user-agents";
+    rev = "v${version}";
+    sha256 = "14kxd780zhp8718xr1z63xffaj3bvxgr4pldh9sv943m4hvi0gw5";
+  };
+
+  propagatedBuildInputs = [ ua-parser ];
+
+  meta = with stdenv.lib; {
+    description = "A Python library to identify devices by parsing user agent strings";
+    homepage = https://github.com/selwin/python-user-agents;
+    license = licenses.mit;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}