58849dfc4f
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
43 lines
814 B
Nix
43 lines
814 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, future
|
|
, mock
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymemcache";
|
|
version = "3.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pinterest";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-O2qmcLWCUSc1f32irelIZOOuOziOUQXFGcuQJBXPvvM=";
|
|
};
|
|
|
|
checkInputs = [
|
|
future
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -i "/--cov/d" setup.cfg
|
|
'';
|
|
|
|
disabledTests = [
|
|
# python-memcached is not available (last release in 2017)
|
|
"TestClientSocketConnect"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pymemcache" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python memcached client";
|
|
homepage = "https://pymemcache.readthedocs.io/";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|