1{ stdenv, buildPythonPackage, fetchPypi 2, pytest, pytestcov, mock, Mako 3}: 4 5buildPythonPackage rec { 6 pname = "dogpile.cache"; 7 version = "0.6.7"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "fca7deb7c276b879b01c15c5d39b3c05701dc43b263ec3fef1e52cb851cf88ab"; 12 }; 13 14 # Disable concurrency tests that often fail, 15 # probably some kind of timing issue. 16 postPatch = '' 17 rm tests/test_lock.py 18 # Failing tests. https://bitbucket.org/zzzeek/dogpile.cache/issues/116 19 rm tests/cache/test_memcached_backend.py 20 ''; 21 22 buildInputs = [ pytest pytestcov mock Mako ]; 23 24 meta = with stdenv.lib; { 25 description = "A caching front-end based on the Dogpile lock"; 26 homepage = https://bitbucket.org/zzzeek/dogpile.cache; 27 platforms = platforms.unix; 28 license = licenses.bsd3; 29 }; 30}