python.pkgs.praw: 3.5.0 -> 5.2.0

This commit is contained in:
Joerg Thalheim 2017-11-07 12:53:19 +00:00
parent af9e6c1634
commit a5744101a2
2 changed files with 44 additions and 28 deletions

View File

@ -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 ];
};
}

View File

@ -15066,34 +15066,7 @@ in {
}; };
}; };
praw = buildPythonPackage rec { praw = callPackage ../development/python-modules/praw { };
name = "praw-3.5.0";
src = pkgs.fetchurl {
url = "mirror://pypi/p/praw/${name}.zip";
sha256 = "1hwdzqbrjdkicqhyxpcpsmld21k0ndpy8d2gk6l5mv9isw3dm8qa";
};
propagatedBuildInputs = with self; [
requests
decorator
flake8
mock
six
update_checker
];
# can't find the tests module?
doCheck = false;
meta = {
description = "Python Reddit API wrapper";
homepage = http://praw.readthedocs.org/;
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ jgeerds ];
};
};
prawcore = callPackage ../development/python-modules/prawcore { }; prawcore = callPackage ../development/python-modules/prawcore { };