evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / dfdiskcache / default.nix
blob60081809002457ba022c65b84dc25187d4fc2a5a
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pandas,
6   setuptools,
7   simplesqlite,
8   typing-extensions,
9   pytestCheckHook,
12 buildPythonPackage rec {
13   pname = "df-diskcache";
14   version = "0.0.2";
15   pyproject = true;
17   src = fetchFromGitHub {
18     owner = "thombashi";
19     repo = "df-diskcache";
20     rev = "v${version}";
21     hash = "sha256-s+sqEPXw6tbEz9mnG+qeUSF6BmDssYhaDYOmraFaRbw=";
22   };
24   nativeBuildInputs = [ setuptools ];
26   propagatedBuildInputs = [
27     pandas
28     simplesqlite
29     typing-extensions
30   ];
32   preCheck = ''
33     # Needed for Permission denied: '/homeless-shelter'
34     export HOME=$(mktemp -d)
35   '';
37   nativeCheckInputs = [ pytestCheckHook ];
38   pythonImportsCheck = [ "dfdiskcache" ];
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   };