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