Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 70 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ bitarray, buildPythonPackage, dill, diskcache, fetchFromGitHub, hiredis, hypothesis, lib, pytest, pytest-asyncio, pytest-cov-stub, pytest-rerunfailures, pytestCheckHook, redis, setuptools, xxhash,}:
buildPythonPackage rec { pname = "cashews"; version = "7.4.1"; pyproject = true;
src = fetchFromGitHub { owner = "Krukov"; repo = "cashews"; tag = version; hash = "sha256-EQBILaNg7bJhKMz+raWWfsXmaBmJlcE8niXp8BnfzUE="; };
build-system = [ setuptools ];
optional-dependencies = { dill = [ dill ]; diskcache = [ diskcache ]; redis = [ redis ]; speedup = [ bitarray hiredis xxhash ]; };
nativeCheckInputs = [ hypothesis pytest pytest-asyncio pytest-cov-stub pytest-rerunfailures pytestCheckHook ];
disabledTests = [ # these tests require too many dependencies "redis" "diskcache" "integration" ];
pythonImportsCheck = [ "cashews" ];
meta = { description = "Cache tools with async power"; homepage = "https://github.com/Krukov/cashews/"; changelog = "https://github.com/Krukov/cashews/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ moraxyc ]; };}