polarity: latest-unstable-2025-01-08 -> latest-unstable-2025-01-23 (#376222)
[NixPkgs.git] / pkgs / development / python-modules / httmock / default.nix
blob6428b99868f2c929d159775ed55eb96ac796c5f5
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   requests,
6   pytestCheckHook,
7 }:
9 buildPythonPackage rec {
10   pname = "httmock";
11   version = "1.4.0";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "patrys";
16     repo = "httmock";
17     rev = version;
18     hash = "sha256-yid4vh1do0zqVzd1VV7gc+Du4VPrkeGFsDHqNbHL28I=";
19   };
21   nativeCheckInputs = [
22     requests
23     pytestCheckHook
24   ];
26   pytestFlagsArray = [ "tests.py" ];
28   pythonImportsCheck = [ "httmock" ];
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   };