mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
50 lines
876 B
Nix
50 lines
876 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, betamax
|
|
, betamax-serializers
|
|
, betamax-matchers
|
|
, mock
|
|
, prawcore
|
|
, pytestCheckHook
|
|
, requests-toolbelt
|
|
, update_checker
|
|
, websocket_client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "praw";
|
|
version = "7.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "praw-dev";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-onxag3kmswqqSycbwW+orofrukry0pCaRSxVRq2u53A=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
mock
|
|
prawcore
|
|
update_checker
|
|
websocket_client
|
|
];
|
|
|
|
checkInputs = [
|
|
betamax
|
|
betamax-serializers
|
|
betamax-matchers
|
|
pytestCheckHook
|
|
requests-toolbelt
|
|
];
|
|
|
|
pythonImportsCheck = [ "praw" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Reddit API wrapper";
|
|
homepage = "https://praw.readthedocs.org/";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|