at 18.09-beta 1.1 kB view raw
1{ lib, fetchFromGitHub, buildPythonPackage, isPy3k 2, six, pytimeparse, parsedatetime, Babel 3, isodate, python-slugify, leather 4, glibcLocales, nose, lxml, cssselect, unittest2 }: 5 6buildPythonPackage rec { 7 pname = "agate"; 8 version = "1.6.1"; 9 10 # PyPI tarball does not include all test files 11 # https://github.com/wireservice/agate/pull/716 12 src = fetchFromGitHub { 13 owner = "wireservice"; 14 repo = pname; 15 rev = version; 16 sha256 = "077zj8xad8hsa3nqywvf7ircirmx3krxdipl8wr3dynv3l3khcpl"; 17 }; 18 19 propagatedBuildInputs = [ 20 six pytimeparse parsedatetime Babel 21 isodate python-slugify leather 22 ]; 23 24 checkInputs = [ glibcLocales nose lxml cssselect ] 25 ++ lib.optional (!isPy3k) unittest2; 26 27 checkPhase = '' 28 LC_ALL="en_US.UTF-8" nosetests tests 29 ''; 30 31 meta = with lib; { 32 description = "A Python data analysis library that is optimized for humans instead of machines"; 33 homepage = https://github.com/wireservice/agate; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ vrthra ]; 36 }; 37}