Merge pull request #64989 from eyJhb/rotate-backups
pythonPackages.rotate-backups: init at 6.0
This commit is contained in:
27
pkgs/development/python-modules/capturer/default.nix
Normal file
27
pkgs/development/python-modules/capturer/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytest, pytestcov }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "capturer";
|
||||
version = "2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xolox";
|
||||
repo = "python-capturer";
|
||||
rev = version;
|
||||
sha256 = "07zy264xd0g7pz9sxjqcpwmrck334xcbb7wfss26lmvgdr5nhcb9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ humanfriendly ];
|
||||
|
||||
checkPhase = ''
|
||||
PATH=$PATH:$out/bin pytest .
|
||||
'';
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Easily capture stdout/stderr of the current process and subprocesses";
|
||||
homepage = https://github.com/xolox/python-capturer;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eyjhb ];
|
||||
};
|
||||
}
|
||||
34
pkgs/development/python-modules/coloredlogs/default.nix
Normal file
34
pkgs/development/python-modules/coloredlogs/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, stdenv, isPy3k, fetchpatch, humanfriendly, verboselogs, capturer, pytest, mock, utillinux }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "coloredlogs";
|
||||
version = "10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xolox";
|
||||
repo = "python-coloredlogs";
|
||||
rev = version;
|
||||
sha256 = "0rdvp4dfvzhx7z7s2jdl3fv7x1hazgpy5gc7bcf05bnbv2iia54a";
|
||||
};
|
||||
|
||||
# patch by risicle
|
||||
patches = lib.optional (stdenv.isDarwin && isPy3k) (fetchpatch {
|
||||
name = "darwin-py3-capture-fix.patch";
|
||||
url = "https://github.com/xolox/python-coloredlogs/pull/74.patch";
|
||||
sha256 = "0pk7k94iz0gdripw623vzdl4hd83vwhsfzshl8pbvh1n6swi0xx9";
|
||||
});
|
||||
|
||||
checkPhase = ''
|
||||
PATH=$PATH:$out/bin pytest . -k "not test_plain_text_output_format"
|
||||
'';
|
||||
checkInputs = [ pytest mock utillinux ];
|
||||
|
||||
propagatedBuildInputs = [ humanfriendly verboselogs capturer ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Colored stream handler for Python's logging module";
|
||||
homepage = https://github.com/xolox/python-coloredlogs;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eyjhb ];
|
||||
};
|
||||
}
|
||||
31
pkgs/development/python-modules/executor/default.nix
Normal file
31
pkgs/development/python-modules/executor/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, coloredlogs, property-manager, fasteners, pytest, mock, virtualenv }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "executor";
|
||||
version = "21.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xolox";
|
||||
repo = "python-executor";
|
||||
rev = version;
|
||||
sha256 = "0rc14vjx3d6irfaw0pczzw1pn0xjl7xikv32hc1fvxv2ibnldv5d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ coloredlogs property-manager fasteners ];
|
||||
|
||||
checkInputs = [ pytest mock virtualenv ];
|
||||
|
||||
# ignore impure tests
|
||||
checkPhase = ''
|
||||
pytest . -k "not option and not retry \
|
||||
and not remote and not ssh \
|
||||
and not foreach and not local_context"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Programmer friendly subprocess wrapper";
|
||||
homepage = https://github.com/xolox/python-executor;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eyjhb ];
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/naturalsort/default.nix
Normal file
20
pkgs/development/python-modules/naturalsort/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "naturalsort";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xolox";
|
||||
repo = "python-naturalsort";
|
||||
rev = version;
|
||||
sha256 = "0w43vlddzh97hffnvxp2zkrns9qyirx5g8ijxnxkbx1c4b4gq5ih";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple natural order sorting API for Python that just works";
|
||||
homepage = https://github.com/xolox/python-naturalsort;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eyjhb ];
|
||||
};
|
||||
}
|
||||
23
pkgs/development/python-modules/property-manager/default.nix
Normal file
23
pkgs/development/python-modules/property-manager/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, verboselogs, coloredlogs, pytest, pytestcov }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "property-manager";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xolox";
|
||||
repo = "python-property-manager";
|
||||
rev = version;
|
||||
sha256 = "0s4nwipxd8c2vp4rd8mxrj8wbycniz5ki5n177d0dbrnll5amcz0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ coloredlogs humanfriendly verboselogs ];
|
||||
checkInputs = [ pytest pytestcov ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Useful property variants for Python programming";
|
||||
homepage = https://github.com/xolox/python-property-manager;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eyjhb ];
|
||||
};
|
||||
}
|
||||
22
pkgs/development/python-modules/update-dotdee/default.nix
Normal file
22
pkgs/development/python-modules/update-dotdee/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, executor, naturalsort }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "update-dotdee";
|
||||
version = "5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xolox";
|
||||
repo = "python-update-dotdee";
|
||||
rev = version;
|
||||
sha256 = "1h3m593nwzx6vwa24k0wizb7la49yhqxwn73ipclxgxxi4dfdj01";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ executor naturalsort ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generic modularized configuration file manager";
|
||||
homepage = https://github.com/xolox/python-update-dotdee;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eyjhb ];
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/verboselogs/default.nix
Normal file
26
pkgs/development/python-modules/verboselogs/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pytest, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "verboselogs";
|
||||
version = "1.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xolox";
|
||||
repo = "python-verboselogs";
|
||||
rev = version;
|
||||
sha256 = "10jzm8pkl49as4y2zyiidmfqqj5zmqg3p73jvx4lfxi0gmp1vhl5";
|
||||
};
|
||||
|
||||
# do not run pylint plugin test, as astroid is a old unsupported version
|
||||
checkPhase = ''
|
||||
PATH=$PATH:$out/bin pytest . -k "not test_pylint_plugin"
|
||||
'';
|
||||
checkInputs = [ pytest mock ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Verbose logging for Python's logging module";
|
||||
homepage = https://github.com/xolox/python-verboselogs;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eyjhb ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user