-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188280 from flokli/sphinxcontrib-openapi
python3.pkgs.sphinxcontrib-openapi: unbreak, switch to cilium fork
- Loading branch information
Showing
4 changed files
with
132 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, fetchpatch | ||
, flask | ||
, isPy27 | ||
, pytestCheckHook | ||
, pythonAtLeast | ||
, setuptools-scm | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "picobox"; | ||
version = "2.2.0"; | ||
|
||
disabled = isPy27; | ||
|
||
src = fetchFromGitHub { | ||
owner = "ikalnytskyi"; | ||
repo = pname; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-B2A8GMhBFU/mb/JiiqtP+HvpPj5FYwaYO3gQN2QI6z0="; | ||
}; | ||
|
||
patches = [ | ||
(fetchpatch { | ||
# already in master, but no new release yet. | ||
# https://github.com/ikalnytskyi/picobox/issues/55 | ||
url = "https://github.com/ikalnytskyi/picobox/commit/1fcc4a0c26a7cd50ee3ef6694139177b5dfb2be0.patch"; | ||
hash = "sha256-/NIEzTFlZ5wG7jHT/YdySYoxT/UhSk29Up9/VqjG/jg="; | ||
includes = [ | ||
"tests/test_box.py" | ||
"tests/test_stack.py" | ||
]; | ||
}) | ||
]; | ||
|
||
SETUPTOOLS_SCM_PRETEND_VERSION = version; | ||
|
||
nativeBuildInputs = [ | ||
setuptools-scm | ||
]; | ||
|
||
checkInputs = [ | ||
flask | ||
pytestCheckHook | ||
]; | ||
|
||
pythonImportsCheck = [ | ||
"picobox" | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Opinionated dependency injection framework"; | ||
homepage = "https://github.com/ikalnytskyi/picobox"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ flokli ]; | ||
}; | ||
} |
41 changes: 41 additions & 0 deletions
41
pkgs/development/python-modules/sphinx-mdinclude/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchpatch | ||
, fetchPypi | ||
, flit-core | ||
, docutils | ||
, mistune | ||
, pygments | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "sphinx-mdinclude"; | ||
version = "0.5.2"; | ||
format = "flit"; | ||
|
||
src = fetchPypi { | ||
pname = "sphinx_mdinclude"; | ||
inherit version; | ||
hash = "sha256-F7UVe1xNrz+vCbJOCxwyJQoxfwSCORW+qu9vDH7oEPc="; | ||
}; | ||
|
||
nativeBuildInputs = [ flit-core ]; | ||
propagatedBuildInputs = [ mistune docutils ]; | ||
|
||
checkInputs = [ pygments ]; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/miyakogi/m2r"; | ||
description = "Sphinx extension for including or writing pages in Markdown format."; | ||
longDescription = '' | ||
A simple Sphinx extension that enables including Markdown documents from within | ||
reStructuredText. | ||
It provides the .. mdinclude:: directive, and automatically converts the content of | ||
Markdown documents to reStructuredText format. | ||
sphinx-mdinclude is a fork of m2r and m2r2, focused only on providing a Sphinx extension. | ||
''; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ flokli ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters