nixpkgs/pkgs/development/python-modules/prawcore/default.nix

42 lines
822 B
Nix
Raw Normal View History

2019-02-09 09:32:00 +00:00
{ stdenv, buildPythonPackage, fetchPypi
2017-11-07 12:50:11 +00:00
, requests
, testfixtures, mock, requests_toolbelt
2019-10-27 00:20:34 +00:00
, betamax, betamax-serializers, betamax-matchers, pytest
2017-11-07 12:50:11 +00:00
}:
buildPythonPackage rec {
pname = "prawcore";
2020-06-06 06:47:22 +00:00
version = "1.4.0";
2017-11-07 12:50:11 +00:00
2019-02-09 09:32:00 +00:00
src = fetchPypi {
inherit pname version;
2020-06-06 06:47:22 +00:00
sha256 = "cf71388d869becbcbdfd90258b19d2173c197a457f2dd0bef0566b6cfb9b95a1";
2017-11-07 12:50:11 +00:00
};
propagatedBuildInputs = [
requests
];
checkInputs = [
testfixtures
mock
betamax
betamax-serializers
betamax-matchers
requests_toolbelt
2019-10-27 00:20:34 +00:00
pytest
2017-11-07 12:50:11 +00:00
];
2019-10-27 00:20:34 +00:00
checkPhase = ''
pytest
'';
2017-11-07 12:50:11 +00:00
meta = with stdenv.lib; {
description = "Low-level communication layer for PRAW";
homepage = "https://praw.readthedocs.org/";
2017-11-07 12:50:11 +00:00
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ ];
2017-11-07 12:50:11 +00:00
};
}