2021-03-01 10:05:23 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-02-17 14:07:36 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-httpx";
|
2021-04-27 23:47:46 +02:00
|
|
|
version = "0.12.0";
|
2021-02-17 14:07:36 +01:00
|
|
|
|
2021-03-01 10:05:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Colin-b";
|
|
|
|
repo = "pytest_httpx";
|
|
|
|
rev = "v${version}";
|
2021-04-27 23:47:46 +02:00
|
|
|
sha256 = "sha256-Awhsm8jmoCZTBnfrrauLxAEKtpxTzjPMXmx7HR0f/g4=";
|
2021-02-17 14:07:36 +01:00
|
|
|
};
|
|
|
|
|
2021-03-12 23:20:19 +01:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
2021-03-01 10:05:23 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
httpx
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-17 14:07:36 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pytest_httpx" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Send responses to httpx";
|
|
|
|
homepage = "https://github.com/Colin-b/pytest_httpx";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|