about summary refs log tree commit diff
path: root/pkgs/development/python-modules/prawcore
diff options
context:
space:
mode:
authorJoerg Thalheim <joerg@thalheim.io>2017-11-07 12:50:11 +0000
committerJoerg Thalheim <joerg@thalheim.io>2017-11-07 13:16:42 +0000
commitaf9e6c1634de3a0f256cbcf788dd8b16d7de8618 (patch)
tree6c0964f88423b1a8f7dbef624a3af529dfbccdf2 /pkgs/development/python-modules/prawcore
parentb0225f8cbc1ae6a07bd35b020a17301a2d5787a9 (diff)
python.pkgs.prawcore: init at 0.12.0
Diffstat (limited to 'pkgs/development/python-modules/prawcore')
-rw-r--r--pkgs/development/python-modules/prawcore/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/prawcore/default.nix b/pkgs/development/python-modules/prawcore/default.nix
new file mode 100644
index 0000000000000..eb3fb784dc978
--- /dev/null
+++ b/pkgs/development/python-modules/prawcore/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub
+, requests
+, testfixtures, mock, requests_toolbelt
+, betamax, betamax-serializers, betamax-matchers
+}:
+
+buildPythonPackage rec {
+  pname = "prawcore";
+  version = "0.12.0";
+
+  src = fetchFromGitHub {
+    owner = "praw-dev";
+    repo = "prawcore";
+    rev = "v${version}";
+    sha256 = "1z5fz6v4bv6xw84l4q3rpw3j63bb2dldl0fd6ckz8wqlpb2l45br";
+  };
+
+  propagatedBuildInputs = [
+    requests
+  ];
+
+  checkInputs = [
+    testfixtures
+    mock
+    betamax
+    betamax-serializers
+    betamax-matchers
+    requests_toolbelt
+  ];
+
+  meta = with stdenv.lib; {
+    description = "Low-level communication layer for PRAW";
+    homepage = http://praw.readthedocs.org/;
+    license = licenses.gpl3;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ jgeerds ];
+  };
+}