at master 974 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 wheel, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "xdoctest"; 12 version = "1.3.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "Erotemic"; 17 repo = "xdoctest"; 18 tag = "v${version}"; 19 hash = "sha256-kxisUcpfAxhB7wd2QLY5jkoUXXDYrkJx7bNB1wMVB30="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools 24 wheel 25 ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 preCheck = '' 30 export HOME=$TMPDIR 31 export PATH=$out/bin:$PATH 32 ''; 33 34 pythonImportsCheck = [ "xdoctest" ]; 35 36 meta = with lib; { 37 description = "Rewrite of Python's builtin doctest module (with pytest plugin integration) with AST instead of REGEX"; 38 homepage = "https://github.com/Erotemic/xdoctest"; 39 changelog = "https://github.com/Erotemic/xdoctest/blob/${src.rev}/CHANGELOG.md"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ natsukium ]; 42 mainProgram = "xdoctest"; 43 }; 44}