blob: 08a9777e0c077ded2fecac6815d070a336a89f62 (
plain)
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
44
|
{
lib,
buildPythonPackage,
fetchPypi,
python,
cffi,
setuptools,
}:
buildPythonPackage rec {
pname = "xattr";
version = "1.2.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-pkyOIe/xvhQ6zPgP07j94+KKR4w32imHQq9kesPl4Kc=";
};
nativeBuildInputs = [
cffi
setuptools
];
# https://github.com/xattr/xattr/issues/43
doCheck = false;
propagatedBuildInputs = [ cffi ];
postBuild = ''
${python.pythonOnBuildForHost.interpreter} -m compileall -f xattr
'';
pythonImportsCheck = [ "xattr" ];
meta = {
description = "Python wrapper for extended filesystem attributes";
mainProgram = "xattr";
homepage = "https://github.com/xattr/xattr";
changelog = "https://github.com/xattr/xattr/blob/v${version}/CHANGES.txt";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|