1{ lib
2, buildPythonPackage
3, cryptography
4, fetchFromGitHub
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "securetar";
11 version = "2023.3.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.9";
15
16 src = fetchFromGitHub {
17 owner = "pvizeli";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-3bDboggvKbpWyjpUOrUmtJx3Nj/6Uvut2nEQLYJubDA=";
21 };
22
23 propagatedBuildInputs = [
24 cryptography
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "securetar"
33 ];
34
35 meta = with lib; {
36 description = "Module to handle tarfile backups";
37 homepage = "https://github.com/pvizeli/securetar";
38 changelog = "https://github.com/pvizeli/securetar/releases/tag/${version}";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ fab ];
41 };
42}