mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
37 lines
691 B
Nix
37 lines
691 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 = "Mocking library for requests";
|
|
homepage = "https://github.com/patrys/httmock";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
};
|
|
}
|