at 22.05-pre 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, attrs 6, isodate 7, python-dateutil 8, rfc3986 9, uritemplate 10, mock 11, pytestCheckHook 12, pytest-mock 13}: 14 15buildPythonPackage rec { 16 pname = "csvw"; 17 version = "1.11.0"; 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "cldf"; 22 repo = "csvw"; 23 rev = "v${version}"; 24 sha256 = "1393xwqawaxsflbq62vks92vv4zch8p6dd1mdvdi7j4vvf0zljkg"; 25 }; 26 27 patchPhase = '' 28 substituteInPlace setup.cfg --replace "--cov" "" 29 ''; 30 31 propagatedBuildInputs = [ 32 attrs 33 isodate 34 python-dateutil 35 rfc3986 36 uritemplate 37 ]; 38 39 checkInputs = [ 40 mock 41 pytestCheckHook 42 pytest-mock 43 ]; 44 45 disabledTests = [ 46 # this test is flaky on darwin because it depends on the resolution of filesystem mtimes 47 # https://github.com/cldf/csvw/blob/45584ad63ff3002a9b3a8073607c1847c5cbac58/tests/test_db.py#L257 48 "test_write_file_exists" 49 ]; 50 51 meta = with lib; { 52 description = "CSV on the Web"; 53 homepage = "https://github.com/cldf/csvw"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ hexa ]; 56 }; 57}