Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 32 lines 619 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, python 5, cffi 6}: 7 8buildPythonPackage rec { 9 pname = "xattr"; 10 version = "0.9.6"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "7cb1b28eeab4fe99cc4350e831434142fce658f7d03f173ff7722144e6a47458"; 15 }; 16 17 propagatedBuildInputs = [ cffi ]; 18 19 # https://github.com/xattr/xattr/issues/43 20 doCheck = false; 21 22 postBuild = '' 23 ${python.interpreter} -m compileall -f xattr 24 ''; 25 26 meta = with stdenv.lib; { 27 homepage = https://github.com/xattr/xattr; 28 description = "Python wrapper for extended filesystem attributes"; 29 license = licenses.mit; 30 }; 31 32}