depot/third_party/nixpkgs/pkgs/development/python-modules/praw/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

55 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.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "praw-dev";
repo = pname;
rev = "v${version}";
sha256 = "sha256-y2eynMsjF4wZd31YoLdtk8F+ga7Z3R+IQkQK0x0RAGA=";
};
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 ];
};
}