about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/btrfs/default.nix
blob: ff21d5670d72f91cbc152a583c5fd3b1f52c25eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, buildPythonPackage
, fetchFromGitHub
}:

buildPythonPackage rec {
  pname = "btrfs";
  version = "12";

  src = fetchFromGitHub {
    owner = "knorrie";
    repo = "python-btrfs";
    rev = "v${version}";
    sha256 = "sha256-ZQSp+pbHABgBTrCwC2YsUUXAf/StP4ny7MEhBgCRqgE=";
  };

  # no tests (in v12)
  doCheck = false;
  pythonImportsCheck = [ "btrfs" ];

  meta = with lib; {
    description = "Inspect btrfs filesystems";
    homepage = "https://github.com/knorrie/python-btrfs";
    license = licenses.lgpl3Plus;
    platforms = platforms.linux;
    maintainers = [ maintainers.evils ];
  };
}