Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, python3 3, fetchFromGitHub 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "rotate-backups"; 8 version = "8.1"; 9 10 src = fetchFromGitHub { 11 owner = "xolox"; 12 repo = "python-rotate-backups"; 13 rev = version; 14 sha256 = "0r4dyd7hj403rksgp3vh1azp9n4af75r3wq3x39wxcqizpms3vkx"; 15 }; 16 17 propagatedBuildInputs = with python3.pkgs; [ 18 python-dateutil 19 simpleeval 20 update-dotdee 21 ]; 22 23 nativeCheckInputs = with python3.pkgs; [ 24 pytestCheckHook 25 ]; 26 27 disabledTests = [ 28 # https://github.com/xolox/python-rotate-backups/issues/33 29 "test_removal_command" 30 ]; 31 32 meta = with lib; { 33 description = "Simple command line interface for backup rotation"; 34 homepage = "https://github.com/xolox/python-rotate-backups"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ eyjhb ]; 37 }; 38}