Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.2.0"; 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 pname = "dogpile.cache"; 19 inherit version; 20 hash = "sha256-R1VMhgzrSE3Vrvn/H4j+yz1K72u5IRlFD1vLqgJrv7E="; 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 nativeCheckInputs = [ 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}