mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
49 lines
879 B
Nix
49 lines
879 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, testfixtures
|
|
, mock
|
|
, requests-toolbelt
|
|
, betamax
|
|
, betamax-serializers
|
|
, betamax-matchers
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "prawcore";
|
|
version = "2.3.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0vgmhjddqxnz5vy70dyqvakak51fg1nk6j3xavkc83d8nzacrwfs";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
testfixtures
|
|
mock
|
|
betamax
|
|
betamax-serializers
|
|
betamax-matchers
|
|
requests-toolbelt
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "prawcore" ];
|
|
|
|
meta = with lib; {
|
|
description = "Low-level communication layer for PRAW";
|
|
homepage = "https://praw.readthedocs.org/";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|