diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-07-01 18:12:31 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-07-01 14:35:12 -0700 |
commit | dc9b36e54d2a3fa49254f36fcecbf21caabf3be7 (patch) | |
tree | ff0bcf610d02825518659ecbad3b08edea8b3026 /pkgs/tools/backup | |
parent | 5cbf555c2ff2cb29fbc6b2402a43dbf383db6558 (diff) | |
download | nixpkgs-dc9b36e54d2a3fa49254f36fcecbf21caabf3be7.tar nixpkgs-dc9b36e54d2a3fa49254f36fcecbf21caabf3be7.tar.gz nixpkgs-dc9b36e54d2a3fa49254f36fcecbf21caabf3be7.tar.bz2 nixpkgs-dc9b36e54d2a3fa49254f36fcecbf21caabf3be7.tar.lz nixpkgs-dc9b36e54d2a3fa49254f36fcecbf21caabf3be7.tar.xz nixpkgs-dc9b36e54d2a3fa49254f36fcecbf21caabf3be7.tar.zst nixpkgs-dc9b36e54d2a3fa49254f36fcecbf21caabf3be7.zip |
rotate-backups: move out of pythonPackages
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r-- | pkgs/tools/backup/rotate-backups/default.nix | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/pkgs/tools/backup/rotate-backups/default.nix b/pkgs/tools/backup/rotate-backups/default.nix index c0a06e1b9ae..c825baca1df 100644 --- a/pkgs/tools/backup/rotate-backups/default.nix +++ b/pkgs/tools/backup/rotate-backups/default.nix @@ -1,6 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, update-dotdee, simpleeval, dateutil }: +{ lib +, python3 +, fetchFromGitHub +}: -buildPythonPackage rec { +python3.pkgs.buildPythonApplication rec { pname = "rotate-backups"; version = "6.0"; @@ -11,7 +14,20 @@ buildPythonPackage rec { sha256 = "0i59qfv1cfm0ss63ab2nrkn5wr4rxpqqmvfd7pf9c3pl9dbfq20c"; }; - propagatedBuildInputs = [ update-dotdee simpleeval dateutil ]; + propagatedBuildInputs = with python3.pkgs; [ + python-dateutil + simpleeval + update-dotdee + ]; + + checkInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + disabledTests = [ + # https://github.com/xolox/python-rotate-backups/issues/33 + "test_removal_command" + ]; meta = with lib; { description = "Simple command line interface for backup rotation"; @@ -20,4 +36,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ eyjhb ]; }; } - |