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