1{ stdenv, buildPythonPackage, fetchPypi, isPy3k 2, beautifulsoup4, bottle, chardet, dateutil 3, google_api_python_client, lxml, ply, python_magic 4, nose, requests }: 5 6buildPythonPackage rec { 7 version = "2.1.2"; 8 pname = "beancount"; 9 10 disabled = !isPy3k; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "d0d5f7088cb6b699cc4d030dad42d20b8228232cdb445bb1330d4ef5e3581f52"; 15 }; 16 17 checkInputs = [ nose ]; 18 19 # Automatic tests cannot be run because it needs to import some local modules for tests. 20 doCheck = false; 21 checkPhase = '' 22 nosetests 23 ''; 24 25 propagatedBuildInputs = [ 26 beautifulsoup4 27 bottle 28 chardet 29 dateutil 30 google_api_python_client 31 lxml 32 ply 33 python_magic 34 requests 35 ]; 36 37 meta = { 38 homepage = http://furius.ca/beancount/; 39 description = "Double-entry bookkeeping computer language"; 40 longDescription = '' 41 A double-entry bookkeeping computer language that lets you define 42 financial transaction records in a text file, read them in memory, 43 generate a variety of reports from them, and provides a web interface. 44 ''; 45 license = stdenv.lib.licenses.gpl2; 46 maintainers = with stdenv.lib.maintainers; [ ]; 47 }; 48} 49