Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 877 B view raw
1{ stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k, pythonOlder, enum34, python }: 2 3buildPythonPackage rec { 4 pname = "dbf"; 5 version = "0.97.11"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "8aa5a73d8b140aa3c511a3b5b204a67d391962e90c66b380dd048fcae6ddbb68"; 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}