at 22.05-pre 1.0 kB view raw
1{ lib, fetchpatch, python3 }: 2 3python3.pkgs.buildPythonApplication rec { 4 pname = "csvkit"; 5 version = "1.0.5"; 6 7 src = python3.pkgs.fetchPypi { 8 inherit pname version; 9 sha256 = "1ffmbzk4rxnl1yhqfl58v7kvl5m9cbvjm8v7xp4mvr00sgs91lvv"; 10 }; 11 12 patches = [ 13 # Fixes a failing dbf related test. Won't be needed on 1.0.6 or later. 14 (fetchpatch { 15 url = "https://github.com/wireservice/csvkit/commit/5f22e664121b13d9ff005a9206873a8f97431dca.patch"; 16 sha256 = "1kg00z65x7l6dnm5nfsr5krs8m7mv23hhb1inkaqf5m5fpkpnvv7"; 17 }) 18 ]; 19 20 propagatedBuildInputs = with python3.pkgs; [ 21 agate 22 agate-excel 23 agate-dbf 24 agate-sql 25 six 26 setuptools 27 ]; 28 29 checkInputs = with python3.pkgs; [ 30 nose 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ "csvkit" ]; 35 36 meta = with lib; { 37 description = "A suite of command-line tools for converting to and working with CSV"; 38 maintainers = with maintainers; [ vrthra ]; 39 license = licenses.mit; 40 homepage = "https://github.com/wireservice/csvkit"; 41 }; 42}