49 lines
834 B
Nix
49 lines
834 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, pytest
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-httpx";
|
|
version = "0.17.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Colin-b";
|
|
repo = "pytest_httpx";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-cJRzjNIN9Fc8vcjmndW+akjxDSp+wFahY2MEslgXIwM=";
|
|
};
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
httpx
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
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; [ fab SuperSandro2000 ];
|
|
};
|
|
}
|