depot/third_party/nixpkgs/pkgs/development/python-modules/python-memcached/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
868 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 = with lib; {
description = "Pure python memcached client";
homepage = "https://github.com/linsomniac/python-memcached";
license = licenses.psfl;
maintainers = with maintainers; [ dotlambda ];
};
}