mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
56 lines
954 B
Nix
56 lines
954 B
Nix
{ lib
|
|
, betamax
|
|
, betamax-matchers
|
|
, betamax-serializers
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, prawcore
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests-toolbelt
|
|
, update_checker
|
|
, websocket-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "praw";
|
|
version = "7.5.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "praw-dev";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-xcITJ349ek9Y0HvJwzKJ7xDUV74w2v3yTBaj5n8YJ58=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|