Unverified Commit 20b923f3 authored by Ryan Lahfa's avatar Ryan Lahfa Committed by GitHub
Browse files

pyxattr: render available on Darwin (#476848)

parents 948fb41b 718400d5
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
{
  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;
  };
}