diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-04 00:14:11 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-04 00:18:33 +0100 |
commit | 101973ed0fd4ccf003b868da06da5347cf536cd7 (patch) | |
tree | 1af1468958d18df3cecc152c17219efd56be398d /pkgs/development/python-modules/praw | |
parent | b53f4f3a669a0cab7a24728df1e19a9f41d16e7a (diff) |
python3Packages.praw: switch to pytestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/praw')
-rw-r--r-- | pkgs/development/python-modules/praw/default.nix | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/praw/default.nix b/pkgs/development/python-modules/praw/default.nix index 1d9d349600bd5..8d4018d6d09f1 100644 --- a/pkgs/development/python-modules/praw/default.nix +++ b/pkgs/development/python-modules/praw/default.nix @@ -1,12 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub +{ lib +, buildPythonPackage +, fetchFromGitHub , betamax , betamax-serializers , betamax-matchers , mock -, six -, pytestrunner , prawcore -, pytest +, pytestCheckHook , requests-toolbelt , update_checker , websocket_client @@ -18,15 +18,11 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "praw-dev"; - repo = "praw"; + repo = pname; rev = "v${version}"; sha256 = "sha256-aEx0swjfyBrSu1fgIiAwdwWmk9v5o7sbT5HTVp7L3R4="; }; - nativeBuildInputs = [ - pytestrunner - ]; - propagatedBuildInputs = [ mock prawcore @@ -38,16 +34,16 @@ buildPythonPackage rec { betamax betamax-serializers betamax-matchers - mock - pytest + pytestCheckHook requests-toolbelt - six ]; + pythonImportsCheck = [ "praw" ]; + meta = with lib; { description = "Python Reddit API wrapper"; homepage = "https://praw.readthedocs.org/"; license = licenses.bsd2; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ fab ]; }; } |