1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, pytestCheckHook
6, mock
7, Mako
8, decorator
9, stevedore
10}:
11
12buildPythonPackage rec {
13 pname = "dogpile-cache";
14 version = "1.1.8";
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 pname = "dogpile.cache";
19 inherit version;
20 sha256 = "sha256-2ETou2OMxPVEpMiag039Nv6TVAC3GhbL10Tr37cg/U4=";
21 };
22
23 preCheck = ''
24 # Disable concurrency tests that often fail,
25 # probably some kind of timing issue.
26 rm tests/test_lock.py
27 # Failing tests. https://bitbucket.org/zzzeek/dogpile.cache/issues/116
28 rm tests/cache/test_memcached_backend.py
29 '';
30
31 dontUseSetuptoolsCheck = true;
32
33 checkInputs = [ pytestCheckHook mock Mako ];
34
35 propagatedBuildInputs = [ decorator stevedore ];
36
37 meta = with lib; {
38 description = "A caching front-end based on the Dogpile lock";
39 homepage = "https://bitbucket.org/zzzeek/dogpile.cache";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ ];
42 };
43}