at 24.05-pre 858 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, cffi 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "xattr"; 11 version = "0.10.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-wS59gf+qBgWzrIwiwplKjhipzxxZKHobdyKiKJyVLsU="; 19 }; 20 21 propagatedBuildInputs = [ 22 cffi 23 ]; 24 25 # https://github.com/xattr/xattr/issues/43 26 doCheck = false; 27 28 postBuild = '' 29 ${python.pythonOnBuildForHost.interpreter} -m compileall -f xattr 30 ''; 31 32 pythonImportsCheck = [ 33 "xattr" 34 ]; 35 36 meta = with lib; { 37 description = "Python wrapper for extended filesystem attributes"; 38 homepage = "https://github.com/xattr/xattr"; 39 changelog = "https://github.com/xattr/xattr/blob/v${version}/CHANGES.txt"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ ]; 42 }; 43}