at 23.11-beta 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, simplejson 5, mock 6, twisted 7, isPyPy 8}: 9 10buildPythonPackage rec { 11 pname = "pyutil"; 12 version = "3.3.6"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-XcPWu5xbq6u10Ldz4JQEXXVxLos0ry0psOKGAmaCZ8A="; 17 }; 18 19 propagatedBuildInputs = [ simplejson ]; 20 21 nativeCheckInputs = [ mock twisted ]; 22 23 prePatch = lib.optionalString isPyPy '' 24 grep -rl 'utf-8-with-signature-unix' ./ | xargs sed -i -e "s|utf-8-with-signature-unix|utf-8|g" 25 ''; 26 27 meta = with lib; { 28 description = "Pyutil, a collection of mature utilities for Python programmers"; 29 30 longDescription = '' 31 These are a few data structures, classes and functions which 32 we've needed over many years of Python programming and which 33 seem to be of general use to other Python programmers. Many of 34 the modules that have existed in pyutil over the years have 35 subsequently been obsoleted by new features added to the 36 Python language or its standard library, thus showing that 37 we're not alone in wanting tools like these. 38 ''; 39 40 homepage = "https://github.com/tpltnt/pyutil"; 41 license = licenses.gpl2Plus; 42 maintainers = with maintainers; [ prusnak ]; 43 }; 44 45}