diff --git a/pkgs/development/python-modules/securetar/default.nix b/pkgs/development/python-modules/securetar/default.nix new file mode 100644 index 000000000000..68b25355744d --- /dev/null +++ b/pkgs/development/python-modules/securetar/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, cryptography +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "securetar"; + version = "2022.02.0"; + format = "setuptools"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "pvizeli"; + repo = pname; + rev = version; + hash = "sha256-FwQp08jwcGh07zpHqRNoUUmeLZJh78wI8wCXySi3Tdc="; + }; + + propagatedBuildInputs = [ + cryptography + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "securetar" + ]; + + meta = with lib; { + description = "Module to handle tarfile backups"; + homepage = "https://github.com/pvizeli/securetar"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index a40ac3baba33..e57b8921cf93 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -237,7 +237,8 @@ ]; "backup" = ps: with ps; [ aiohttp-cors - ]; # missing inputs: securetar + securetar + ]; "baidu" = ps: with ps; [ ]; # missing inputs: baidu-aip "balboa" = ps: with ps; [ @@ -3161,6 +3162,7 @@ "axis" "azure_devops" "azure_event_hub" + "backup" "balboa" "bayesian" "binary_sensor" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 92039ecefa8b..39c2bff67873 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9154,6 +9154,8 @@ in { secure = callPackage ../development/python-modules/secure { }; + securetar = callPackage ../development/python-modules/securetar { }; + seekpath = callPackage ../development/python-modules/seekpath { }; segments = callPackage ../development/python-modules/segments { };