rotate-backups: move out of pythonPackages

This commit is contained in:
Robert Schütz 2021-07-01 18:12:31 +02:00 committed by Jonathan Ringer
parent 5cbf555c2f
commit dc9b36e54d
4 changed files with 21 additions and 7 deletions

View file

@ -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 ];
};
}

View file

@ -18079,7 +18079,7 @@ in
rocksdb_lite = rocksdb.override { enableLite = true; };
rotate-backups = with python3Packages; toPythonApplication rotate-backups;
rotate-backups = callPackage ../tools/backup/rotate-backups { };
rote = callPackage ../development/libraries/rote { };

View file

@ -50,6 +50,7 @@ mapAliases ({
pytest-pep8 = pytestpep8; # added 2021-01-04
pytestpep8 = throw "pytestpep8 was removed because it is abandoned and no longer compatible with pytest v6.0"; # added 2020-12-10
qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09
rotate-backups = throw "pythonPackages.rotate-backups was removed in favor of the top-level rotate-backups"; # added 2021-07-01
selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # Added 2021-06-10
setuptools_scm = setuptools-scm; # added 2021-06-03
smart_open = smart-open; # added 2021-03-14

View file

@ -7624,8 +7624,6 @@ in {
ropper = callPackage ../development/python-modules/ropper { };
rotate-backups = callPackage ../tools/backup/rotate-backups { };
routes = callPackage ../development/python-modules/routes { };
rpdb = callPackage ../development/python-modules/rpdb { };