mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 09:10:08 +00:00
39 lines
846 B
Nix
39 lines
846 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
btrfs-progs,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "btrsync";
|
|
version = "0.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andreittr";
|
|
repo = "btrsync";
|
|
tag = "v${version}";
|
|
hash = "sha256-FTN2YOGoaGwUww6HWuZbZdrERdDSPAgIzGrTfHL/9NU=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ btrfs-progs ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "btrsync" ];
|
|
|
|
meta = {
|
|
description = "Btrfs replication made easy";
|
|
homepage = "https://github.com/andreittr/btrsync";
|
|
changelog = "https://github.com/andreittr/btrsync/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.gpl3Only;
|
|
mainProgram = "btrsync";
|
|
maintainers = with lib.maintainers; [ bcyran ];
|
|
};
|
|
}
|