at 23.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, btrfs-progs 5, contextlib2 6, pyxdg 7, pycparser 8, alembic 9, cffi 10, pythonOlder 11, isPyPy 12}: 13 14buildPythonPackage rec { 15 version = "0.10.1"; 16 pname = "bedup"; 17 disabled = pythonOlder "3.3"; 18 19 src = fetchFromGitHub { 20 owner = "g2p"; 21 repo = "bedup"; 22 rev = "v${version}"; 23 sha256 = "0sp8pmjkxcqq0alianfp41mwq7qj10rk1qy31pjjp9kiph1rn0x6"; 24 }; 25 26 buildInputs = [ btrfs-progs ]; 27 propagatedBuildInputs = [ contextlib2 pyxdg pycparser alembic ] 28 ++ lib.optionals (!isPyPy) [ cffi ]; 29 30 meta = with lib; { 31 description = "Deduplication for Btrfs"; 32 longDescription = '' 33 Deduplication for Btrfs. bedup looks for new and changed files, 34 making sure that multiple copies of identical files share space 35 on disk. It integrates deeply with btrfs so that scans are 36 incremental and low-impact. 37 ''; 38 homepage = "https://github.com/g2p/bedup"; 39 license = licenses.gpl2; 40 maintainers = with maintainers; [ bluescreen303 ]; 41 }; 42}