1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, future
5, mock
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "pymemcache";
11 version = "3.5.0";
12
13 src = fetchFromGitHub {
14 owner = "pinterest";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "sha256-O2qmcLWCUSc1f32irelIZOOuOziOUQXFGcuQJBXPvvM=";
18 };
19
20 checkInputs = [
21 future
22 mock
23 pytestCheckHook
24 ];
25
26 postPatch = ''
27 sed -i "/--cov/d" setup.cfg
28 '';
29
30 disabledTests = [
31 # python-memcached is not available (last release in 2017)
32 "TestClientSocketConnect"
33 ];
34
35 pythonImportsCheck = [ "pymemcache" ];
36
37 meta = with lib; {
38 description = "Python memcached client";
39 homepage = "https://pymemcache.readthedocs.io/";
40 license = with licenses; [ asl20 ];
41 maintainers = with maintainers; [ fab ];
42 };
43}