nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, cffi
6}:
7
8buildPythonPackage rec {
9 pname = "xattr";
10 version = "0.9.9";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "09cb7e1efb3aa1b4991d6be4eb25b73dc518b4fe894f0915f5b0dcede972f346";
15 };
16
17 propagatedBuildInputs = [ cffi ];
18
19 # https://github.com/xattr/xattr/issues/43
20 doCheck = false;
21
22 postBuild = ''
23 ${python.interpreter} -m compileall -f xattr
24 '';
25
26 meta = with lib; {
27 homepage = "https://github.com/xattr/xattr";
28 description = "Python wrapper for extended filesystem attributes";
29 license = licenses.mit;
30 };
31
32}