Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 75 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, anysqlite, boto3, buildPythonPackage, fetchFromGitHub, hatch-fancy-pypi-readme, hatchling, httpx, moto, pytest-asyncio, pytestCheckHook, pythonOlder, pyyaml, redis, trio,}:
buildPythonPackage rec { pname = "hishel"; version = "0.1.3"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "karpetrosyan"; repo = "hishel"; tag = version; hash = "sha256-3dcXj9MPPtHBzafdccrOeh+Wrn9hulDA8L3itOe8ZXw="; };
build-system = [ hatch-fancy-pypi-readme hatchling ];
dependencies = [ httpx ];
optional-dependencies = { redis = [ redis ]; s3 = [ boto3 ]; sqlite = [ anysqlite ]; yaml = [ pyyaml ]; };
nativeCheckInputs = [ moto pytest-asyncio pytestCheckHook trio ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "hishel" ];
disabledTests = [ # Tests require a running Redis instance "test_redis" ];
disabledTestPaths = [ # ImportError: cannot import name 'mock_s3' from 'moto' "tests/_async/test_storages.py" "tests/_sync/test_storages.py" ];
meta = with lib; { description = "HTTP Cache implementation for HTTPX and HTTP Core"; homepage = "https://github.com/karpetrosyan/hishel"; changelog = "https://github.com/karpetrosyan/hishel/blob/${src.tag}/CHANGELOG.md"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; };}