1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, attrs 6, colorlog 7, csvw 8, python-dateutil 9, tabulate 10, mock 11, postgresql 12, pytestCheckHook 13, pytest-mock 14}: 15 16buildPythonPackage rec { 17 pname = "clldutils"; 18 version = "3.9.0"; 19 disabled = isPy27; 20 21 src = fetchFromGitHub { 22 owner = "clld"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "07ljq7v1zvaxyl6xn4a2p4097lgd5j9bz71lf05y5bz8k024mxbr"; 26 }; 27 28 patchPhase = '' 29 substituteInPlace setup.cfg --replace "--cov" "" 30 ''; 31 32 propagatedBuildInputs = [ 33 python-dateutil 34 tabulate 35 colorlog 36 attrs 37 csvw 38 ]; 39 40 checkInputs = [ 41 mock 42 postgresql 43 pytestCheckHook 44 pytest-mock 45 ]; 46 47 disabledTests = [ 48 # uses pytest.approx which is not supported in a boolean context in pytest7 49 "test_to_dec" 50 "test_roundtrip" 51 ]; 52 53 meta = with lib; { 54 description = "Utilities for clld apps without the overhead of requiring pyramid, rdflib et al"; 55 homepage = "https://github.com/clld/clldutils"; 56 license = licenses.asl20; 57 maintainers = with maintainers; [ ]; 58 }; 59}