depot/third_party/nixpkgs/pkgs/development/python-modules/praw/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

56 lines
1 KiB
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.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "praw-dev";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-reJW1M1yDSQ1SvZJeOc0jwHj6ydl1AmMl5VZqRHxXZA=";
};
propagatedBuildInputs = [
mock
prawcore
update_checker
websocket-client
];
nativeCheckInputs = [
betamax
betamax-serializers
betamax-matchers
pytestCheckHook
requests-toolbelt
];
pythonImportsCheck = [
"praw"
];
meta = with lib; {
description = "Python Reddit API wrapper";
homepage = "https://praw.readthedocs.org/";
changelog = "https://github.com/praw-dev/praw/blob/v${version}/CHANGES.rst";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}