nixpkgs/pkgs/development/python-modules/xattr/default.nix
2022-10-27 09:47:36 +02:00

32 lines
599 B
Nix

{ 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;
};
}