at master 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytest-cov-stub, 7 pytest-django, 8 pytest-xdist, 9 pytestCheckHook, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "diskcache"; 15 version = "5.6.3"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "grantjenks"; 22 repo = "python-diskcache"; 23 rev = "v${version}"; 24 hash = "sha256-1cDpdf+rLaG14TDd1wEHAiYXb69NFTFeOHD1Ib1oOVY="; 25 }; 26 27 nativeCheckInputs = [ 28 pytest-cov-stub 29 pytest-django 30 pytest-xdist 31 pytestCheckHook 32 ]; 33 34 disabledTests = [ 35 # Very time sensitive, can fail on over subscribed machines 36 "test_incr_update_keyerror" 37 # AssertionError: 'default' is not None 38 "test_decr_version" 39 "test_incr_version" 40 "test_get_or_set" 41 "test_get_many" 42 # see https://github.com/grantjenks/python-diskcache/issues/260 43 "test_cache_write_unpicklable_object" 44 ]; 45 46 pythonImportsCheck = [ "diskcache" ]; 47 48 meta = with lib; { 49 description = "Disk and file backed persistent cache"; 50 homepage = "http://www.grantjenks.com/docs/diskcache/"; 51 license = licenses.asl20; 52 maintainers = [ ]; 53 }; 54}