mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
python3Packages.pytest-httpx: enable tests
This commit is contained in:
parent
7bbebc5d6a
commit
928cec1a4e
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user