Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 872 B view raw
1{ stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k, pythonOlder, enum34, python }: 2 3buildPythonPackage rec { 4 pname = "dbf"; 5 version = "0.99.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "a4a7a8cdc113d840142d21a796c16c7d329ad35c48f17156446732c83ebc571a"; 10 }; 11 12 propagatedBuildInputs = [ aenum ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34; 13 14 doCheck = !isPy3k; 15 # tests are not yet ported. 16 # https://groups.google.com/forum/#!topic/python-dbase/96rx2xmCG4w 17 18 checkPhase = '' 19 ${python.interpreter} dbf/test.py 20 ''; 21 22 meta = with stdenv.lib; { 23 description = "Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files"; 24 homepage = "https://pypi.python.org/pypi/dbf"; 25 license = licenses.bsd2; 26 maintainers = with maintainers; [ vrthra ]; 27 }; 28}