python3Packages.http-snapshot: init at 0.1.9
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
jiter,
|
||||
pydantic,
|
||||
sniffio,
|
||||
tokenizers,
|
||||
typing-extensions,
|
||||
|
||||
# optional dependencies
|
||||
@@ -28,6 +27,7 @@
|
||||
|
||||
# test
|
||||
dirty-equals,
|
||||
http-snapshot,
|
||||
inline-snapshot,
|
||||
nest-asyncio,
|
||||
pytest-asyncio,
|
||||
@@ -66,7 +66,6 @@ buildPythonPackage (finalAttrs: {
|
||||
jiter
|
||||
pydantic
|
||||
sniffio
|
||||
tokenizers
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
@@ -84,6 +83,7 @@ buildPythonPackage (finalAttrs: {
|
||||
|
||||
nativeCheckInputs = [
|
||||
dirty-equals
|
||||
http-snapshot
|
||||
inline-snapshot
|
||||
nest-asyncio
|
||||
pytest-asyncio
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
httpx,
|
||||
inline-snapshot,
|
||||
lib,
|
||||
pytest,
|
||||
pytestCheckHook,
|
||||
requests,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "http-snapshot";
|
||||
version = "0.1.9";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "karpetrosyan";
|
||||
repo = "http-snapshot";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-4roxtwzB3HXwvlBqjdHEit4flXlogVwzlYNgQE8vFwE=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
buildInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
inline-snapshot
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
httpx = [ httpx ];
|
||||
requests = [ requests ];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "http_snapshot" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
]
|
||||
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
|
||||
|
||||
pytestFlags = [
|
||||
"--inline-snapshot=disable"
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/karpetrosyan/http-snapshot/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
description = "Pytest plugin that snapshots requests made with popular Python HTTP clients";
|
||||
homepage = "https://github.com/karpetrosyan/http-snapshot";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.dotlambda ];
|
||||
};
|
||||
})
|
||||
@@ -7156,6 +7156,8 @@ self: super: with self; {
|
||||
|
||||
http-sfv = callPackage ../development/python-modules/http-sfv { };
|
||||
|
||||
http-snapshot = callPackage ../development/python-modules/http-snapshot { };
|
||||
|
||||
httpagentparser = callPackage ../development/python-modules/httpagentparser { };
|
||||
|
||||
httpauth = callPackage ../development/python-modules/httpauth { };
|
||||
|
||||
Reference in New Issue
Block a user