1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pandas, 6 setuptools, 7 simplesqlite, 8 typing-extensions, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "df-diskcache"; 14 version = "0.0.2"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "thombashi"; 19 repo = "df-diskcache"; 20 rev = "v${version}"; 21 hash = "sha256-s+sqEPXw6tbEz9mnG+qeUSF6BmDssYhaDYOmraFaRbw="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ 27 pandas 28 simplesqlite 29 typing-extensions 30 ]; 31 32 preCheck = '' 33 # Needed for Permission denied: '/homeless-shelter' 34 export HOME=$(mktemp -d) 35 ''; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 pythonImportsCheck = [ "dfdiskcache" ]; 39 40 meta = with lib; { 41 description = "Python library for caching pandas.DataFrame objects to local disk"; 42 homepage = "https://github.com/thombashi/df-diskcache"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ henrirosten ]; 45 }; 46}