nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 attr,
4 fetchPypi,
5 stdenv,
6 buildPythonPackage,
7}:
8
9buildPythonPackage rec {
10 pname = "pyxattr";
11 version = "0.8.1";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-SMV47PjqC9Q1GxdSRw4wGpCjdhx8IfAPlT3PbW+m7lo=";
17 };
18
19 # IOError: [Errno 95] Operation not supported (expected)
20 doCheck = false;
21
22 buildInputs = lib.optional (lib.meta.availableOn stdenv.buildPlatform attr) attr;
23
24 meta = {
25 description = "Python extension module which gives access to the extended attributes for filesystem objects available in some operating systems";
26 license = lib.licenses.lgpl21Plus;
27 # Darwin doesn't need `attr` for this.
28 platforms = lib.platforms.linux ++ lib.platforms.darwin;
29 };
30}