Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, dataproperty 5, mbstrdecoder 6, pathvalidate 7, setuptools 8, tabledata 9, tcolorpy 10, typepy 11, pytestCheckHook 12, pyyaml 13, toml 14, elasticsearch 15, dominate 16}: 17 18buildPythonPackage rec { 19 pname = "pytablewriter"; 20 version = "0.64.2"; 21 22 src = fetchFromGitHub { 23 owner = "thombashi"; 24 repo = pname; 25 rev = "v${version}"; 26 hash = "sha256-+IOHnmdd9g3SoHyITJJtbJ0/SAAmwWmwX5XeqsO34EM="; 27 }; 28 29 propagatedBuildInputs = [ 30 dataproperty 31 mbstrdecoder 32 pathvalidate 33 tabledata 34 tcolorpy 35 typepy 36 ]; 37 38 checkInputs = [ pyyaml toml elasticsearch dominate ]; 39 nativeCheckInputs = [ pytestCheckHook ]; 40 # Circular dependency 41 disabledTests = [ 42 "test_normal_from_file" 43 "test_normal_from_text" 44 "test_normal_clear_theme" 45 ]; 46 disabledTestPaths = [ 47 "test/writer/binary/test_excel_writer.py" 48 "test/writer/binary/test_sqlite_writer.py" 49 ]; 50 51 meta = with lib; { 52 homepage = "https://github.com/thombashi/pytablewriter"; 53 description = "A library to write a table in various formats"; 54 maintainers = with maintainers; [ genericnerdyusername ]; 55 license = licenses.mit; 56 }; 57}