Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/apeye/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
buildPythonPackage,
fetchPypi,
flit-core,
apeye-core,
domdf-python-tools,
platformdirs,
requests,
lib,
}:
buildPythonPackage rec {
pname = "apeye";
version = "1.4.1";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "apeye";
hash = "sha256-FOpUL61onjv9vaIYmjVKSQjpCu5L+EwVq3XWhFPXajY=";
};

build-system = [ flit-core ];

dependencies = [
apeye-core
domdf-python-tools
platformdirs
requests
];

pythonImportsCheck = [ "apeye" ];

meta = {
description = "Handy tools for working with URLs and APIs";
homepage = "https://github.com/domdfcoding/apeye";
license = lib.licenses.gpl3Plus;
maintainers = [ ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this set ?

meta.maintainers must be set for new packages.

https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md

};
}
35 changes: 35 additions & 0 deletions pkgs/development/python-modules/autodocsumm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
buildPythonPackage,
fetchPypi,
setuptools,
versioneer,
sphinx,
lib,
}:
buildPythonPackage rec {
pname = "autodocsumm";
version = "0.2.14";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "autodocsumm";
hash = "sha256-KDmp1PrMPE7M0wbAhpVUCREEK0bur83DID5tC6tAvHc=";
};

build-system = [ setuptools ];

dependencies = [
versioneer
sphinx
];

pythonImportsCheck = [ "autodocsumm" ];

meta = {
description = "Extended sphinx autodoc including automatic autosummaries";
homepage = "https://github.com/Chilipp/autodocsumm";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/dict2css/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
buildPythonPackage,
fetchPypi,
whey,
cssutils,
lib,
}:
buildPythonPackage rec {
pname = "dict2css";
version = "0.3.0.post1";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "dict2css";
hash = "sha256-icVEwhxMp0csP/+50309km9gYymv23Udwd5npBG3Bxk=";
};

build-system = [ whey ];

dependencies = [ cssutils ];

pythonImportsCheck = [ "dict2css" ];

meta = {
description = "μ-library for constructing cascading style sheets from Python dictionaries";
homepage = "https://github.com/sphinx-toolbox/dict2css";
license = lib.licenses.mit;
maintainers = [ ];
};
}
47 changes: 47 additions & 0 deletions pkgs/development/python-modules/sphinx-jinja2-compat/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
buildPythonPackage,
fetchPypi,
whey,
whey-pth,
jinja2,
markupsafe,
standard-imghdr,
lib,
}:
buildPythonPackage rec {
pname = "sphinx-jinja2-compat";
version = "0.4.1";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "sphinx_jinja2_compat";
hash = "sha256-AYjwgC1Cw9pymXUztVoAgVZZp40/gdS0dHsfsVpXKOY=";
};

postPatch = ''
substituteInPlace \
requirements.txt PKG-INFO pyproject.toml \
--replace-fail "standard-imghdr==3.10.14" "standard-imghdr"
'';

build-system = [
whey
whey-pth
];

dependencies = [
jinja2
markupsafe
standard-imghdr
];

pythonImportsCheck = [ "sphinx_jinja2_compat" ];

meta = {
description = "Patches Jinja2 v3 to restore compatibility with earlier Sphinx versions";
homepage = "https://github.com/sphinx-toolbox/sphinx-jinja2-compat";
license = lib.licenses.mit;
maintainers = [ ];
};
}
69 changes: 69 additions & 0 deletions pkgs/development/python-modules/sphinx-toolbox/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
buildPythonPackage,
fetchPypi,
lib,
whey,
sphinx,
apeye,
autodocsumm,
beautifulsoup4,
cachecontrol,
dict2css,
filelock,
html5lib,
ruamel-yaml,
sphinx-autodoc-typehints,
sphinx-jinja2-compat,
sphinx-prompt,
sphinx-tabs,
tabulate,
python,
}:
buildPythonPackage rec {
pname = "sphinx-toolbox";
version = "4.0.0";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "sphinx_toolbox";
hash = "sha256-SMMUUdsuLYxxwDk55yoZ73vJLKeFCmLbY/x7uDlbZ4U=";
};

postPatch = ''
substituteInPlace \
requirements.txt PKG-INFO pyproject.toml \
--replace-fail "sphinx-tabs<3.4.7,>=1.2.1" "sphinx-tabs<=3.4.7,>=1.2.1"
'';

build-system = [ whey ];

dependencies = [
sphinx
apeye
autodocsumm
beautifulsoup4
cachecontrol
dict2css
filelock
html5lib
ruamel-yaml
sphinx-autodoc-typehints
sphinx-jinja2-compat
sphinx-prompt
sphinx-tabs
tabulate
];

# Not PEP420 compliant, some variables are imported from within the package.
postFixup = ''
echo '__version__: str = "${version}"' > $out/${python.sitePackages}/sphinx_toolbox/__init__.py
'';

meta = {
description = "Box of handy tools for Sphinx";
homepage = "https://github.com/sphinx-toolbox/sphinx-toolbox";
license = lib.licenses.mit;
maintainers = [ ];
};
}
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/sphinxcontrib-mermaid/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
buildPythonPackage,
fetchPypi,
setuptools,
sphinx,
pyyaml,
rst2pdf,
lib,
}:
buildPythonPackage rec {
pname = "sphinxcontrib-mermaid";
version = "1.0.0";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "sphinxcontrib_mermaid";
hash = "sha256-Loq2fT4eKBZmP5NH0Cao3uSoWKzdStMt0cgIiT24gUY=";
};

build-system = [ setuptools ];

dependencies = [
sphinx
pyyaml
rst2pdf
];

pythonImportsCheck = [ "sphinxcontrib.mermaid" ];

meta = {
description = "Mermaid diagrams in yours sphinx powered docs";
homepage = "https://github.com/mgaitan/sphinxcontrib-mermaid";
license = lib.licenses.bsd2;
maintainers = [ ];
};
}
12 changes: 12 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,8 @@ self: super: with self; {

apcaccess = callPackage ../development/python-modules/apcaccess { };

apeye = callPackage ../development/python-modules/apeye { };

apeye-core = callPackage ../development/python-modules/apeye-core { };

apipkg = callPackage ../development/python-modules/apipkg { };
Expand Down Expand Up @@ -1178,6 +1180,8 @@ self: super: with self; {

autocommand = callPackage ../development/python-modules/autocommand { };

autodocsumm = callPackage ../development/python-modules/autodocsumm { };

autofaiss = callPackage ../development/python-modules/autofaiss { };

autoflake = callPackage ../development/python-modules/autoflake { };
Expand Down Expand Up @@ -3741,6 +3745,8 @@ self: super: with self; {

dicomweb-client = callPackage ../development/python-modules/dicomweb-client { };

dict2css = callPackage ../development/python-modules/dict2css { };

dict2xml = callPackage ../development/python-modules/dict2xml { };

dictdiffer = callPackage ../development/python-modules/dictdiffer { };
Expand Down Expand Up @@ -17529,6 +17535,8 @@ self: super: with self; {

sphinx-jinja = callPackage ../development/python-modules/sphinx-jinja { };

sphinx-jinja2-compat = callPackage ../development/python-modules/sphinx-jinja2-compat { };

sphinx-jupyterbook-latex = callPackage ../development/python-modules/sphinx-jupyterbook-latex { };

sphinx-last-updated-by-git =
Expand Down Expand Up @@ -17579,6 +17587,8 @@ self: super: with self; {

sphinx-togglebutton = callPackage ../development/python-modules/sphinx-togglebutton { };

sphinx-toolbox = callPackage ../development/python-modules/sphinx-toolbox { };

sphinx-version-warning = callPackage ../development/python-modules/sphinx-version-warning { };

sphinx-versions = callPackage ../development/python-modules/sphinx-versions { };
Expand Down Expand Up @@ -17627,6 +17637,8 @@ self: super: with self; {

sphinxcontrib-log-cabinet = callPackage ../development/python-modules/sphinxcontrib-log-cabinet { };

sphinxcontrib-mermaid = callPackage ../development/python-modules/sphinxcontrib-mermaid { };

sphinxcontrib-moderncmakedomain =
callPackage ../development/python-modules/sphinxcontrib-moderncmakedomain
{ };
Expand Down
Loading