My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/httmock/default.nix

34 lines
657 B

{ 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 ];
};
}