Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 52 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, fetchFromGitHub, python, pygments, pythonOlder, wavedrom,}:
buildPythonPackage rec { pname = "markdown2"; version = "2.4.10"; format = "setuptools";
disabled = pythonOlder "3.5";
# PyPI does not contain tests, so using GitHub instead. src = fetchFromGitHub { owner = "trentm"; repo = "python-markdown2"; rev = version; hash = "sha256-1Vs2OMQm/XBOEefV6W58X5hap91aTNuTx8UFf0285uk="; };
nativeCheckInputs = [ pygments ];
checkPhase = '' runHook preCheck
pushd test ${python.interpreter} ./test.py -- -knownfailure popd # test
runHook postCheck '';
optional-dependencies = { code_syntax_highlighting = [ pygments ]; wavedrom = [ wavedrom ]; all = lib.flatten (lib.attrValues (lib.filterAttrs (n: v: n != "all") optional-dependencies)); };
meta = with lib; { changelog = "https://github.com/trentm/python-markdown2/blob/${src.rev}/CHANGES.md"; description = "Fast and complete Python implementation of Markdown"; mainProgram = "markdown2"; homepage = "https://github.com/trentm/python-markdown2"; license = licenses.mit; maintainers = with maintainers; [ hbunke ]; };}