1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "volatile";
11 version = "2.1.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "mbr";
18 repo = "volatile";
19 tag = version;
20 hash = "sha256-TYUvr0bscM/FaPk9oiF4Ob7HdKa2HlbpEFmaPfh4ir0=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "volatile" ];
26
27 meta = with lib; {
28 description = "Small extension for the tempfile module";
29 homepage = "https://github.com/mbr/volatile";
30 license = licenses.mit;
31 maintainers = with maintainers; [ fab ];
32 };
33}