Diff: https://github.com/praw-dev/prawcore/compare/refs/tags/v2.3.0...v2.4.0 Changelog: https://github.com/praw-dev/prawcore/blob/v2.4.0/CHANGES.rst
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, betamax
|
|
, betamax-matchers
|
|
, betamax-serializers
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flit-core
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-toolbelt
|
|
, testfixtures
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "prawcore";
|
|
version = "2.4.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "praw-dev";
|
|
repo = "prawcore";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-tECZRx6VgyiJDKHvj4Rf1sknFqUhz3sDFEsAMOeB7/g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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/";
|
|
changelog = "https://github.com/praw-dev/prawcore/blob/v${version}/CHANGES.rst";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|