Commit d9eca2cf authored by Sarah Clark's avatar Sarah Clark
Browse files

python3Packages.uqbar: build from GitHub

parent 36a8284c
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  pytestCheckHook,
  pytest-asyncio,
  pythonAtLeast,
@@ -17,9 +17,11 @@ buildPythonPackage rec {
  version = "0.9.6";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-BaycnI00SgZzpvHPueXAAzV/yWDJEeaViWRSZkJofaY=";
  src = fetchFromGitHub {
    owner = "supriya-project";
    repo = "uqbar";
    tag = "v${version}";
    hash = "sha256-1rK40lwZ3YmQZXhia2+iYRZxDCYvijXgBMIL5p7KmR0=";
  };

  postPatch = ''
@@ -61,11 +63,11 @@ buildPythonPackage rec {
    "test_sphinx_style"
  ]
  ++ lib.optional (pythonAtLeast "3.12") [
    # https://github.com/josiah-wolf-oberholtzer/uqbar/issues/93
    # https://github.com/supriya-project/uqbar/issues/93
    "objects.get_vars"
  ]
  ++ lib.optionals (pythonAtLeast "3.14") [
    # https://github.com/josiah-wolf-oberholtzer/uqbar/issues/106
    # https://github.com/supriya-project/uqbar/issues/106
    "test_04"
    "SummarizingClassDocumenter"
  ];
@@ -74,8 +76,8 @@ buildPythonPackage rec {

  meta = {
    description = "Tools for creating Sphinx and Graphviz documentation";
    homepage = "https://github.com/josiah-wolf-oberholtzer/uqbar";
    changelog = "https://github.com/josiah-wolf-oberholtzer/uqbar/releases/tag/v${version}";
    homepage = "https://github.com/supriya-project/uqbar";
    changelog = "https://github.com/supriya-project/uqbar/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ davisrichard437 ];
  };