Unverified Commit 61575afc authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #274521 from pbsds/bump-pdoc-1702667116

python3Packages.pdoc: 14.1.0 -> 14.2.0
parents aa3d5490 628e3e29
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, rustPlatform
, cargo
, rustc
, libiconv
}:

buildPythonPackage rec {
  pname = "pdoc-pyo3-sample-library";
  version = "1.0.11";
  pyproject = true;

  src = fetchPypi {
    pname = "pdoc_pyo3_sample_library";
    inherit version;
    hash = "sha256-ZGMo7WgymkSDQu8tc4rTfWNsIWO0AlDPG0OzpKRq3oA=";
  };

  cargoDeps = rustPlatform.fetchCargoTarball {
    inherit pname version src;
    hash = "sha256-KrEBr998AV/bKcIoq0tX72/QwPD9bQplrS0Zw+JiSMQ=";
  };

  nativeBuildInputs = [
    rustPlatform.cargoSetupHook
    rustPlatform.maturinBuildHook
    cargo
    rustc
  ];

  buildInputs = lib.optionals stdenv.isDarwin [
    libiconv
  ];

  pythonImportsCheck = [ "pdoc_pyo3_sample_library" ];

  # no tests
  doCheck = false;

  meta = {
    description = "A sample PyO3 library used in pdoc tests";
    homepage = "https://github.com/mitmproxy/pdoc-pyo3-sample-library";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.pbsds ];
  };
}
+5 −3
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
, fetchFromGitHub
, setuptools
, jinja2
, pdoc-pyo3-sample-library
, pygments
, markupsafe
, astunparse
@@ -13,16 +14,16 @@

buildPythonPackage rec {
  pname = "pdoc";
  version = "14.1.0";
  version = "14.2.0";
  disabled = pythonOlder "3.8";

  format = "pyproject";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mitmproxy";
    repo = "pdoc";
    rev = "v${version}";
    hash = "sha256-LQXhdzocw01URrmpDayK9rpsArvM/E44AE8Eok9DBwk=";
    hash = "sha256-Mmmq4jqRQow+1jn5ZDVMtP1uxrYgHJK/IQrwFWNw8ag=";
  };

  nativeBuildInputs = [
@@ -38,6 +39,7 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    pytestCheckHook
    hypothesis
    pdoc-pyo3-sample-library
  ];
  disabledTestPaths = [
    # "test_snapshots" tries to match generated output against stored snapshots,
+2 −0
Original line number Diff line number Diff line
@@ -9097,6 +9097,8 @@ self: super: with self; {
  pdoc = callPackage ../development/python-modules/pdoc { };
  pdoc-pyo3-sample-library = callPackage ../development/python-modules/pdoc-pyo3-sample-library { };
  pdoc3 = callPackage ../development/python-modules/pdoc3 { };
  peaqevcore = callPackage ../development/python-modules/peaqevcore { };