depot/third_party/nixpkgs/pkgs/development/python-modules/python-memcached/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

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 ];
};
}