summary refs log tree commit diff
path: root/pkgs/development/python-modules/praw
diff options
context:
space:
mode:
authorJoerg Thalheim <joerg@thalheim.io>2017-11-07 12:53:19 +0000
committerJoerg Thalheim <joerg@thalheim.io>2017-11-07 13:17:07 +0000
commita5744101a2a1e01901e8a82a4a0654bdaff5ff9a (patch)
tree7f02e7bc4ca95257ef30d52770ecff4487a8d67b /pkgs/development/python-modules/praw
parentaf9e6c1634de3a0f256cbcf788dd8b16d7de8618 (diff)
downloadnixpkgs-a5744101a2a1e01901e8a82a4a0654bdaff5ff9a.tar
nixpkgs-a5744101a2a1e01901e8a82a4a0654bdaff5ff9a.tar.gz
nixpkgs-a5744101a2a1e01901e8a82a4a0654bdaff5ff9a.tar.bz2
nixpkgs-a5744101a2a1e01901e8a82a4a0654bdaff5ff9a.tar.lz
nixpkgs-a5744101a2a1e01901e8a82a4a0654bdaff5ff9a.tar.xz
nixpkgs-a5744101a2a1e01901e8a82a4a0654bdaff5ff9a.tar.zst
nixpkgs-a5744101a2a1e01901e8a82a4a0654bdaff5ff9a.zip
python.pkgs.praw: 3.5.0 -> 5.2.0
Diffstat (limited to 'pkgs/development/python-modules/praw')
-rw-r--r--pkgs/development/python-modules/praw/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/praw/default.nix b/pkgs/development/python-modules/praw/default.nix
new file mode 100644
index 00000000000..c0be1009b06
--- /dev/null
+++ b/pkgs/development/python-modules/praw/default.nix
@@ -0,0 +1,43 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub
+, requests, decorator, flake8, mock, six, update_checker, pytestrunner, prawcore
+, pytest, betamax, betamax-serializers, betamax-matchers, requests_toolbelt
+}:
+
+buildPythonPackage rec {
+  pname = "praw";
+  version = "5.2.0";
+
+  src = fetchFromGitHub {
+    owner = "praw-dev";
+    repo = "praw";
+    rev = "v${version}";
+    sha256 = "0nwfadczxa1fyq65zc3sfv8g2r4w3xrx3bdi5fv9xpn97wh2ifgw";
+  };
+
+  propagatedBuildInputs = [
+    requests
+    decorator
+    flake8
+    mock
+    six
+    update_checker
+    pytestrunner
+    prawcore
+  ];
+
+  checkInputs = [
+    pytest
+    betamax
+    betamax-serializers
+    betamax-matchers
+    requests_toolbelt
+  ];
+
+  meta = with stdenv.lib; {
+    description = "Python Reddit API wrapper";
+    homepage = http://praw.readthedocs.org/;
+    license = licenses.gpl3;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ jgeerds ];
+  };
+}