depot/third_party/nixpkgs/pkgs/development/python-modules/xattr/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

43 lines
837 B
Nix

{ 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.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; [ ];
};
}