evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / xdoctest / default.nix
blobdb4865f48e29e78e56f676f9d0f948f322016a1d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   wheel,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "xdoctest";
12   version = "1.2.0";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "Erotemic";
17     repo = "xdoctest";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-1c3wnQ30J2OfnBffzGfPPt9St8VpLGmFGbifzbw+cOc=";
20   };
22   nativeBuildInputs = [
23     setuptools
24     wheel
25   ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   preCheck = ''
30     export HOME=$TMPDIR
31     export PATH=$out/bin:$PATH
32   '';
34   pythonImportsCheck = [ "xdoctest" ];
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   };