1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "httmock";
10 version = "1.4.0";
11
12 src = fetchFromGitHub {
13 owner = "patrys";
14 repo = "httmock";
15 rev = version;
16 sha256 = "sha256-yid4vh1do0zqVzd1VV7gc+Du4VPrkeGFsDHqNbHL28I=";
17 };
18
19 checkInputs = [
20 requests
21 pytestCheckHook
22 ];
23
24 pytestFlagsArray = [ "tests.py" ];
25
26 pythonImportsCheck = [ "httmock" ];
27
28 meta = with lib; {
29 description = "A mocking library for requests";
30 homepage = "https://github.com/patrys/httmock";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ nyanloutre ];
33 };
34}