depot/third_party/nixpkgs/pkgs/development/python-modules/xattr/default.nix

33 lines
599 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, python
, cffi
}:
buildPythonPackage rec {
pname = "xattr";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ciZS0qUyTheJHEFtTHbZHM+YgwqPUWoN6FM86GfzrK8=";
};
propagatedBuildInputs = [ cffi ];
# https://github.com/xattr/xattr/issues/43
doCheck = false;
postBuild = ''
${python.interpreter} -m compileall -f xattr
'';
meta = with lib; {
homepage = "https://github.com/xattr/xattr";
description = "Python wrapper for extended filesystem attributes";
license = licenses.mit;
};
}