3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/praw/default.nix

55 lines
944 B
Nix
Raw Normal View History

2017-11-07 12:53:19 +00:00
{ stdenv, buildPythonPackage, fetchFromGitHub
2019-07-04 03:50:30 +01:00
, betamax
, betamax-serializers
, betamax-matchers
, mock
, six
, pytestrunner
, prawcore
, pytest
, requests-toolbelt
, update_checker
, websocket_client
2017-11-07 12:53:19 +00:00
}:
buildPythonPackage rec {
pname = "praw";
2019-07-04 03:50:30 +01:00
version = "6.3.1";
2017-11-07 12:53:19 +00:00
src = fetchFromGitHub {
owner = "praw-dev";
repo = "praw";
rev = "v${version}";
2019-07-04 03:50:30 +01:00
sha256 = "0by89aw7m803dvjcc33m9390msjm6v5v8g3k8ink9gfm421lw8ky";
2017-11-07 12:53:19 +00:00
};
2019-07-04 03:50:30 +01:00
nativeBuildInputs = [
pytestrunner
];
2017-11-07 12:53:19 +00:00
propagatedBuildInputs = [
mock
prawcore
2019-07-04 03:50:30 +01:00
update_checker
websocket_client
2017-11-07 12:53:19 +00:00
];
checkInputs = [
betamax
betamax-serializers
betamax-matchers
2019-07-04 03:50:30 +01:00
mock
pytest
requests-toolbelt
six
2017-11-07 12:53:19 +00:00
];
meta = with stdenv.lib; {
description = "Python Reddit API wrapper";
2019-07-04 03:50:30 +01:00
homepage = "https://praw.readthedocs.org/";
license = licenses.bsd2;
2017-11-07 12:53:19 +00:00
platforms = platforms.all;
maintainers = with maintainers; [ ];
2017-11-07 12:53:19 +00:00
};
}