Files
nixpkgs/pkgs/development/python-modules/python-memcached/default.nix
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

50 lines
866 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
memcached,
mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "python-memcached";
version = "1.62";
pyproject = true;
src = fetchFromGitHub {
owner = "linsomniac";
repo = "python-memcached";
rev = version;
hash = "sha256-Qko4Qr9WofeklU0uRRrSPrT8YaBYMCy0GP+TF7YZHLI=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
memcached
mock
pytestCheckHook
];
preCheck = ''
memcached &
'';
postCheck = ''
kill %%
'';
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "memcache" ];
meta = {
description = "Pure python memcached client";
homepage = "https://github.com/linsomniac/python-memcached";
license = lib.licenses.psfl;
maintainers = with lib.maintainers; [ dotlambda ];
};
}