fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
49 lines
868 B
Nix
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 ];
|
|
};
|
|
}
|