Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 818 B view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pytestcov 7, pytest_xdist 8, pytest-django 9, mock 10}: 11 12buildPythonPackage rec { 13 pname = "diskcache"; 14 version = "5.2.1"; 15 16 src = fetchFromGitHub { 17 owner = "grantjenks"; 18 repo = "python-diskcache"; 19 rev = "v${version}"; 20 sha256 = "sha256-dWtEyyWpg0rxEwyhBdPyApzgS9o60HVGbtY76ELHvX8="; 21 }; 22 23 checkInputs = [ 24 pytestCheckHook 25 pytestcov 26 pytest_xdist 27 pytest-django 28 mock 29 ]; 30 31 # Darwin sandbox causes most tests to fail. 32 doCheck = !stdenv.isDarwin; 33 pythonImportsCheck = [ "diskcache" ]; 34 35 meta = with lib; { 36 description = "Disk and file backed persistent cache"; 37 homepage = "http://www.grantjenks.com/docs/diskcache/"; 38 license = licenses.asl20; 39 maintainers = [ maintainers.costrouc ]; 40 }; 41}