Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / httmock / default.nix
blobf48cdbd1ff456c63cba7d1dd8ec16844c17c0aa9
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , requests
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "httmock";
10   version = "1.4.0";
12   src = fetchFromGitHub {
13     owner = "patrys";
14     repo = "httmock";
15     rev = version;
16     hash = "sha256-yid4vh1do0zqVzd1VV7gc+Du4VPrkeGFsDHqNbHL28I=";
17   };
19   nativeCheckInputs = [
20     requests
21     pytestCheckHook
22   ];
24   pytestFlagsArray = [ "tests.py" ];
26   pythonImportsCheck = [ "httmock" ];
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   };