mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
python311Packages.xdoctest: init at 1.1.2
This commit is contained in:
parent
dad24c0a0d
commit
bcfad0b5b2
48
pkgs/development/python-modules/xdoctest/default.nix
Normal file
48
pkgs/development/python-modules/xdoctest/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, wheel
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xdoctest";
|
||||
version = "1.1.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Erotemic";
|
||||
repo = "xdoctest";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-yTu5ldr9TkpYRP8hjgUPpexBVLjaK2gfPvISjMJLY74=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
export PATH=$out/bin:$PATH
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "xdoctest" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A rewrite of Python's builtin doctest module (with pytest plugin integration) with AST instead of REGEX";
|
||||
homepage = "https://github.com/Erotemic/xdoctest";
|
||||
changelog = "https://github.com/Erotemic/xdoctest/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
mainProgram = "xdoctest";
|
||||
};
|
||||
}
|
@ -15765,6 +15765,8 @@ self: super: with self; {
|
||||
|
||||
xdis = callPackage ../development/python-modules/xdis { };
|
||||
|
||||
xdoctest = callPackage ../development/python-modules/xdoctest { };
|
||||
|
||||
xdot = callPackage ../development/python-modules/xdot {
|
||||
inherit (pkgs) graphviz;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user