Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pymemcache / default.nix
blobd0089e8edbe679130a9825bc89fa52796864da7f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , future
5 , mock
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "pymemcache";
11   version = "3.4.0";
13   src = fetchFromGitHub {
14     owner = "pinterest";
15     repo = pname;
16     rev = "v${version}";
17     sha256 = "0xkw76y4059jg2a902wlpk6psyh2g4x6j6vlj9gzd5vqb7ihg2y7";
18   };
20   checkInputs = [
21     future
22     mock
23     pytestCheckHook
24   ];
26   postPatch = ''
27     sed -i "/--cov/d" setup.cfg
28   '';
30   disabledTests = [
31     # python-memcached is not available (last release in 2017)
32     "TestClientSocketConnect"
33   ];
35   pythonImportsCheck = [ "pymemcache" ];
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   };