Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 42 lines 847 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 mdformat, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "mdformat-tables"; 13 version = "0.4.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "executablebooks"; 20 repo = pname; 21 rev = "v${version}"; 22 hash = "sha256-Q61GmaRxjxJh9GjyR8QCZOH0njFUtAWihZ9lFQJ2nQQ="; 23 }; 24 25 nativeBuildInputs = [ flit-core ]; 26 27 propagatedBuildInputs = [ mdformat ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "mdformat_tables" ]; 32 33 meta = with lib; { 34 description = "Mdformat plugin for rendering tables"; 35 homepage = "https://github.com/executablebooks/mdformat-tables"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ 38 aldoborrero 39 polarmutex 40 ]; 41 }; 42}