Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi 2, pytest, pytestcov, mock, Mako, decorator 3}: 4 5buildPythonPackage rec { 6 pname = "dogpile.cache"; 7 version = "0.7.1"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "691b7f199561c4bd6e7e96f164a43cc3781b0c87bea29b7d59d859f873fd4a31"; 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 checkInputs = [ pytest pytestcov mock Mako ]; 23 24 propagatedBuildInputs = [ decorator ]; 25 26 meta = with stdenv.lib; { 27 description = "A caching front-end based on the Dogpile lock"; 28 homepage = https://bitbucket.org/zzzeek/dogpile.cache; 29 license = licenses.bsd3; 30 }; 31}