mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
50c4d94fc5
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-praw/versions
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
, requests, decorator, flake8, mock, six, update_checker, pytestrunner, prawcore
|
|
, pytest, betamax, betamax-serializers, betamax-matchers, requests_toolbelt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "praw";
|
|
version = "6.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "praw-dev";
|
|
repo = "praw";
|
|
rev = "v${version}";
|
|
sha256 = "0y6nyz8vf98gl1qfmnznv3dbvlbzdl6mz99vk673nyfn3hbs451i";
|
|
};
|
|
|
|
postPatch = ''
|
|
# drop upper bound of prawcore requirement
|
|
sed -ri "s/'(prawcore >=.+), <.+'/'\1'/" setup.py
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
decorator
|
|
flake8
|
|
mock
|
|
six
|
|
update_checker
|
|
pytestrunner
|
|
prawcore
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
betamax
|
|
betamax-serializers
|
|
betamax-matchers
|
|
requests_toolbelt
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Python Reddit API wrapper";
|
|
homepage = http://praw.readthedocs.org/;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ jgeerds ];
|
|
};
|
|
}
|