blob: 47060703933b77e8c4eea358baf595ec64082186 (
plain)
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
];
enabledTestPaths = [ "tests.py" ];
pythonImportsCheck = [ "httmock" ];
meta = {
description = "Mocking library for requests";
homepage = "https://github.com/patrys/httmock";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ nyanloutre ];
};
}
|