nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 871 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 python, 6 cffi, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "xattr"; 12 version = "1.3.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-MEOfq9feB4eyfppuHVacWVmFTLMi9kznOA/tv6UDUDY="; 18 }; 19 20 nativeBuildInputs = [ 21 cffi 22 setuptools 23 ]; 24 25 # https://github.com/xattr/xattr/issues/43 26 doCheck = false; 27 28 propagatedBuildInputs = [ cffi ]; 29 30 postBuild = '' 31 ${python.pythonOnBuildForHost.interpreter} -m compileall -f xattr 32 ''; 33 34 pythonImportsCheck = [ "xattr" ]; 35 36 meta = { 37 description = "Python wrapper for extended filesystem attributes"; 38 mainProgram = "xattr"; 39 homepage = "https://github.com/xattr/xattr"; 40 changelog = "https://github.com/xattr/xattr/blob/v${version}/CHANGES.txt"; 41 license = lib.licenses.mit; 42 maintainers = [ ]; 43 }; 44}