summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/volatile/default.nix
blob: 00abbb8184b527e9f6fb1db5320e2bceacf9870d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "volatile";
  version = "2.1.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mbr";
    repo = "volatile";
    tag = version;
    hash = "sha256-TYUvr0bscM/FaPk9oiF4Ob7HdKa2HlbpEFmaPfh4ir0=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "volatile" ];

  meta = {
    description = "Small extension for the tempfile module";
    homepage = "https://github.com/mbr/volatile";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}