Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / prawcore / default.nix
blob6231ff2b812739a4a0defc00dd4d0ee682745993
1 { lib
2 , betamax
3 , betamax-matchers
4 , betamax-serializers
5 , buildPythonPackage
6 , fetchFromGitHub
7 , flit-core
8 , mock
9 , pytestCheckHook
10 , pythonOlder
11 , requests
12 , requests-toolbelt
13 , testfixtures
16 buildPythonPackage rec {
17   pname = "prawcore";
18   version = "2.4.0";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "praw-dev";
25     repo = "prawcore";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-tECZRx6VgyiJDKHvj4Rf1sknFqUhz3sDFEsAMOeB7/g=";
28   };
30   nativeBuildInputs = [
31     flit-core
32   ];
34   propagatedBuildInputs = [
35     requests
36   ];
38   nativeCheckInputs = [
39     testfixtures
40     mock
41     betamax
42     betamax-serializers
43     betamax-matchers
44     requests-toolbelt
45     pytestCheckHook
46   ];
48   disabledTestPaths = [
49     # tests requiring network
50     "tests/integration"
51   ];
53   pythonImportsCheck = [
54     "prawcore"
55   ];
57   meta = with lib; {
58     description = "Low-level communication layer for PRAW";
59     homepage = "https://praw.readthedocs.org/";
60     changelog = "https://github.com/praw-dev/prawcore/blob/v${version}/CHANGES.rst";
61     license = licenses.bsd2;
62     maintainers = with maintainers; [ fab ];
63   };