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