From d774370939551d00bc040b8e589210d09d8b0dad Mon Sep 17 00:00:00 2001 From: "eyjhbb@gmail.com" Date: Tue, 23 Jul 2019 16:57:40 +0200 Subject: [PATCH] pythonPackages.rotate-backups: init at 6.0 --- pkgs/tools/backup/rotate-backups/default.nix | 23 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 pkgs/tools/backup/rotate-backups/default.nix diff --git a/pkgs/tools/backup/rotate-backups/default.nix b/pkgs/tools/backup/rotate-backups/default.nix new file mode 100644 index 000000000000..17397ce838f5 --- /dev/null +++ b/pkgs/tools/backup/rotate-backups/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchFromGitHub, update-dotdee, simpleeval, dateutil }: + +buildPythonPackage rec { + pname = "rotate-backups"; + version = "6.0"; + + src = fetchFromGitHub { + owner = "xolox"; + repo = "python-rotate-backups"; + rev = version; + sha256 = "0i59qfv1cfm0ss63ab2nrkn5wr4rxpqqmvfd7pf9c3pl9dbfq20c"; + }; + + propagatedBuildInputs = [ update-dotdee simpleeval dateutil ]; + + meta = with lib; { + description = "Simple command line interface for backup rotation"; + homepage = https://github.com/xolox/python-rotate-backups; + license = licenses.mit; + maintainers = with maintainers; [ eyjhb ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9f00c228063b..a5e49b0fdef8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13097,6 +13097,8 @@ in rocksdb_lite = rocksdb.override { enableLite = true; }; + rotate-backups = with python3Packages; toPythonApplication rotate-backups; + rote = callPackage ../development/libraries/rote { }; ronn = callPackage ../development/tools/ronn { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5526d169972e..565f72b9b7e3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2665,6 +2665,8 @@ in { roman = callPackage ../development/python-modules/roman { }; + rotate-backups = callPackage ../tools/backup/rotate-backups { }; + librosa = callPackage ../development/python-modules/librosa { }; samplerate = callPackage ../development/python-modules/samplerate { };