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 { buildPythonPackage rec {
pname = "pytest-httpx"; pname = "pytest-httpx";
version = "0.11.0"; version = "0.11.0";
src = fetchPypi { src = fetchFromGitHub {
inherit version; owner = "Colin-b";
pname = "pytest_httpx"; repo = "pytest_httpx";
extension = "tar.gz"; rev = "v${version}";
sha256 = "sha256-koyrYudZfWRYeK4nP9SLGvEd0xlf017FyZ2FN8CV0Ys="; sha256 = "08idd3y6khxjqkn46diqvkjvsl4w4pxhl6z1hspbkrj0pqwf9isi";
}; };
propagatedBuildInputs = [ httpx pytest ]; propagatedBuildInputs = [
httpx
pytest
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
# not in pypi tarball
doCheck = false;
pythonImportsCheck = [ "pytest_httpx" ]; pythonImportsCheck = [ "pytest_httpx" ];
meta = with lib; { meta = with lib; {