mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
2bfa93e01c
It won't be enough to fix cross in all cases, but it is in at least one: pywayland. I've only made the change in cases I'm confident it's correct, as it would be wrong to change this when python.interpreter is used in wrappers, and possibly when it's used for running tests.
44 lines
852 B
Nix
44 lines
852 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.pythonForBuild.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; [ ];
|
|
};
|
|
}
|