mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
Merge pull request #181880 from pbsds/pdoc-init
python3Packages.pdoc: init at 12.0.2
This commit is contained in:
commit
b8f814b1f9
56
pkgs/development/python-modules/pdoc/default.nix
Normal file
56
pkgs/development/python-modules/pdoc/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, jinja2
|
||||
, pygments
|
||||
, markupsafe
|
||||
, astunparse
|
||||
, pytestCheckHook
|
||||
, hypothesis
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdoc";
|
||||
version = "12.0.2";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
# the Pypi version does not include tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "mitmproxy";
|
||||
repo = "pdoc";
|
||||
rev = "v${version}";
|
||||
sha256 = "FVfPO/QoHQQqg7QU05GMrrad0CbRR5AQVYUpBhZoRi0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jinja2
|
||||
pygments
|
||||
markupsafe
|
||||
] ++ lib.optional (pythonOlder "3.9") astunparse;
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
hypothesis
|
||||
];
|
||||
disabledTests = [
|
||||
# Failing "test_snapshots" parametrization: Output does not match the stored snapshot
|
||||
# This test seems to be sensitive to ordering of dictionary items and the version of dependencies.
|
||||
# the only difference between the stored snapshot and the produced documentation is a debug javascript comment
|
||||
"html-demopackage_dir"
|
||||
];
|
||||
pytestFlagsArray = [
|
||||
''-m "not slow"'' # skip tests marked slow
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pdoc" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pdoc.dev/";
|
||||
description = "API Documentation for Python Projects";
|
||||
license = licenses.unlicense;
|
||||
maintainers = with maintainers; [ pbsds ];
|
||||
};
|
||||
}
|
|
@ -6634,6 +6634,8 @@ in {
|
|||
|
||||
pdm-pep517 = callPackage ../development/python-modules/pdm-pep517 { };
|
||||
|
||||
pdoc = callPackage ../development/python-modules/pdoc { };
|
||||
|
||||
pdoc3 = callPackage ../development/python-modules/pdoc3 { };
|
||||
|
||||
peaqevcore = callPackage ../development/python-modules/peaqevcore { };
|
||||
|
|
Loading…
Reference in a new issue