mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
pyxattr: render available on Darwin
pyxattr can function on Darwin as per
https://github.com/iustin/pyxattr/blob/main/setup.py#L47.
attr is not required to compile the C extension in this scenario.
The code is slightly cleaned up as well.
This was tested with `doCheck = true;` on Darwin as there's no sandbox
there.
Change-Id: Ie64bde938936407d77b833bfcbc6a675f7eb2e9d
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
(cherry picked from commit 718400d578)
This commit is contained in:
committed by
github-actions[bot]
parent
93fc8666f4
commit
bbb0801d3b
@@ -1,7 +1,8 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
attr,
|
||||
fetchPypi,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
}:
|
||||
|
||||
@@ -18,11 +19,12 @@ buildPythonPackage rec {
|
||||
# IOError: [Errno 95] Operation not supported (expected)
|
||||
doCheck = false;
|
||||
|
||||
buildInputs = with pkgs; [ attr ];
|
||||
buildInputs = lib.optional (lib.meta.availableOn stdenv.buildPlatform attr) attr;
|
||||
|
||||
meta = {
|
||||
description = "Python extension module which gives access to the extended attributes for filesystem objects available in some operating systems";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
inherit (pkgs.attr.meta) platforms;
|
||||
# Darwin doesn't need `attr` for this.
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user