Files
nixpkgs/pkgs/development/python-modules/cachelib/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
846 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-xprocess,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "cachelib";
version = "0.13.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pallets";
repo = "cachelib";
tag = version;
hash = "sha256-8jg+zfdIATvu/GSFvqHl4cNMu+s2IFWC22vPZ7Q3WYI=";
};
nativeCheckInputs = [
pytest-xprocess
pytestCheckHook
];
disabledTestPaths = [
# requires set up local server
"tests/test_dynamodb_cache.py"
"tests/test_mongodb_cache.py"
];
pythonImportsCheck = [ "cachelib" ];
meta = {
homepage = "https://github.com/pallets/cachelib";
description = "Collection of cache libraries in the same API interface";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}