python3Packages.pytest-httpx: enable tests

This commit is contained in:
Fabian Affolter 2021-03-01 10:05:23 +01:00
parent 7bbebc5d6a
commit 928cec1a4e

View File

@ -1,20 +1,33 @@
{ lib, buildPythonPackage, fetchPypi, httpx, pytest }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, pytest
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-httpx";
version = "0.11.0";
src = fetchPypi {
inherit version;
pname = "pytest_httpx";
extension = "tar.gz";
sha256 = "sha256-koyrYudZfWRYeK4nP9SLGvEd0xlf017FyZ2FN8CV0Ys=";
src = fetchFromGitHub {
owner = "Colin-b";
repo = "pytest_httpx";
rev = "v${version}";
sha256 = "08idd3y6khxjqkn46diqvkjvsl4w4pxhl6z1hspbkrj0pqwf9isi";
};
propagatedBuildInputs = [ httpx pytest ];
propagatedBuildInputs = [
httpx
pytest
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
# not in pypi tarball
doCheck = false;
pythonImportsCheck = [ "pytest_httpx" ];
meta = with lib; {