nixpkgs/pkgs/development/python-modules/prawcore/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

49 lines
885 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
];
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/";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ fab ];
};
}