1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 zope-schema, 7 zope-interface, 8 unittestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "zope-filerepresentation"; 13 version = "6.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "zopefoundation"; 18 repo = "zope.filerepresentation"; 19 tag = version; 20 hash = "sha256-6J4munk2yyZ6e9rpU2Op+Gbf0OXGI6GpHjmpUZVRjsY="; 21 }; 22 23 postPatch = '' 24 substituteInPlace pyproject.toml \ 25 --replace-fail "setuptools <= 75.6.0" setuptools 26 ''; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 zope-interface 32 zope-schema 33 ]; 34 35 pythonImportsCheck = [ "zope.filerepresentation" ]; 36 37 nativeCheckInputs = [ unittestCheckHook ]; 38 39 unittestFlagsArray = [ "src/zope/filerepresentation" ]; 40 41 pythonNamespaces = [ "zope" ]; 42 43 meta = { 44 homepage = "https://github.com/zopefoundation/zope.filerepresentation"; 45 description = "File-system Representation Interfaces"; 46 changelog = "https://github.com/zopefoundation/zope.filerepresentation/blob/${version}/CHANGES.rst"; 47 license = lib.licenses.zpl21; 48 maintainers = [ ]; 49 }; 50}