1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-23 01:41:05 +03:00
nixpkgs/pkgs/development/python-modules/praw/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
954 B
Nix
Raw Normal View History

{ lib
2019-07-03 19:50:30 -07:00
, betamax
, betamax-matchers
2021-11-14 11:53:57 +01:00
, betamax-serializers
, buildPythonPackage
, fetchFromGitHub
2019-07-03 19:50:30 -07:00
, mock
, prawcore
, pytestCheckHook
2021-11-14 11:53:57 +01:00
, pythonOlder
2019-07-03 19:50:30 -07:00
, requests-toolbelt
, update_checker
, websocket-client
2017-11-07 12:53:19 +00:00
}:
buildPythonPackage rec {
pname = "praw";
2021-11-14 11:53:57 +01:00
version = "7.5.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2017-11-07 12:53:19 +00:00
src = fetchFromGitHub {
owner = "praw-dev";
repo = pname;
2017-11-07 12:53:19 +00:00
rev = "v${version}";
2021-11-14 11:53:57 +01:00
sha256 = "sha256-xcITJ349ek9Y0HvJwzKJ7xDUV74w2v3yTBaj5n8YJ58=";
2017-11-07 12:53:19 +00:00
};
propagatedBuildInputs = [
mock
prawcore
2019-07-03 19:50:30 -07:00
update_checker
websocket-client
2017-11-07 12:53:19 +00:00
];
checkInputs = [
betamax
betamax-serializers
betamax-matchers
pytestCheckHook
2019-07-03 19:50:30 -07:00
requests-toolbelt
2017-11-07 12:53:19 +00:00
];
2021-11-14 11:53:57 +01:00
pythonImportsCheck = [
"praw"
];
meta = with lib; {
2017-11-07 12:53:19 +00:00
description = "Python Reddit API wrapper";
2019-07-03 19:50:30 -07:00
homepage = "https://praw.readthedocs.org/";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
2017-11-07 12:53:19 +00:00
};
}