Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.4 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, setuptoolsDarcs 5, setuptoolsTrial 6, simplejson 7, twisted 8, isPyPy 9}: 10 11buildPythonPackage rec { 12 pname = "pyutil"; 13 version = "3.3.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "8c4d4bf668c559186389bb9bce99e4b1b871c09ba252a756ccaacd2b8f401848"; 18 }; 19 20 buildInputs = [ setuptoolsDarcs setuptoolsTrial ] ++ (if doCheck then [ simplejson ] else []); 21 propagatedBuildInputs = [ twisted ]; 22 23 # Tests fail because they try to write new code into the twisted 24 # package, apparently some kind of plugin. 25 doCheck = false; 26 27 prePatch = stdenv.lib.optionalString isPyPy '' 28 grep -rl 'utf-8-with-signature-unix' ./ | xargs sed -i -e "s|utf-8-with-signature-unix|utf-8|g" 29 ''; 30 31 meta = with stdenv.lib; { 32 description = "Pyutil, a collection of mature utilities for Python programmers"; 33 34 longDescription = '' 35 These are a few data structures, classes and functions which 36 we've needed over many years of Python programming and which 37 seem to be of general use to other Python programmers. Many of 38 the modules that have existed in pyutil over the years have 39 subsequently been obsoleted by new features added to the 40 Python language or its standard library, thus showing that 41 we're not alone in wanting tools like these. 42 ''; 43 44 homepage = "http://allmydata.org/trac/pyutil"; 45 license = licenses.gpl2Plus; 46 }; 47 48}