depot/third_party/nixpkgs/pkgs/development/python-modules/httmock/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

34 lines
657 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "httmock";
version = "1.4.0";
src = fetchFromGitHub {
owner = "patrys";
repo = "httmock";
rev = version;
sha256 = "sha256-yid4vh1do0zqVzd1VV7gc+Du4VPrkeGFsDHqNbHL28I=";
};
checkInputs = [
requests
pytestCheckHook
];
pytestFlagsArray = [ "tests.py" ];
pythonImportsCheck = [ "httmock" ];
meta = with lib; {
description = "A mocking library for requests";
homepage = "https://github.com/patrys/httmock";
license = licenses.asl20;
maintainers = with maintainers; [ nyanloutre ];
};
}