summary refs log tree commit diff
path: root/pkgs/development/python-modules/xattr/default.nix
blob: 189042082f04245e1aa3d4a35357ed7da00d5684 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, fetchPypi
, python
, cffi
, pythonOlder
}:

buildPythonPackage rec {
  pname = "xattr";
  version = "0.10.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-wS59gf+qBgWzrIwiwplKjhipzxxZKHobdyKiKJyVLsU=";
  };

  propagatedBuildInputs = [
    cffi
  ];

  # https://github.com/xattr/xattr/issues/43
  doCheck = false;

  postBuild = ''
    ${python.pythonForBuild.interpreter} -m compileall -f xattr
  '';

  pythonImportsCheck = [
    "xattr"
  ];

  meta = with lib; {
    description = "Python wrapper for extended filesystem attributes";
    homepage = "https://github.com/xattr/xattr";
    changelog = "https://github.com/xattr/xattr/blob/v${version}/CHANGES.txt";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}