depot/third_party/nixpkgs/pkgs/development/python-modules/httmock/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
693 B
Nix

{
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 = "A mocking library for requests";
homepage = "https://github.com/patrys/httmock";
license = licenses.asl20;
maintainers = with maintainers; [ nyanloutre ];
};
}