nixpkgs/pkgs/development/python-modules/httmock/default.nix

35 lines
657 B
Nix
Raw Normal View History

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