c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
50 lines
865 B
Nix
50 lines
865 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 ];
|
|
};
|
|
}
|