2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-05-05 01:08:42 +01:00
|
|
|
, buildPythonPackage
|
2021-04-17 22:09:59 +01:00
|
|
|
, fetchFromGitHub
|
2020-05-05 01:08:42 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "btrfs";
|
2021-04-17 22:09:59 +01:00
|
|
|
version = "12";
|
2020-05-05 01:08:42 +01:00
|
|
|
|
2021-04-17 22:09:59 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "knorrie";
|
|
|
|
repo = "python-btrfs";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-ZQSp+pbHABgBTrCwC2YsUUXAf/StP4ny7MEhBgCRqgE=";
|
2020-05-05 01:08:42 +01:00
|
|
|
};
|
|
|
|
|
2021-04-17 22:09:59 +01:00
|
|
|
# no tests (in v12)
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "btrfs" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-05 01:08:42 +01:00
|
|
|
description = "Inspect btrfs filesystems";
|
|
|
|
homepage = "https://github.com/knorrie/python-btrfs";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.evils ];
|
|
|
|
};
|
|
|
|
}
|