python3Packages.sphinxext-rediraffe: init at 0.2.7 (#371065)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
sphinx,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinxext-rediraffe";
|
||||
version = "0.2.7";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wpilibsuite";
|
||||
repo = "sphinxext-rediraffe";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-g+GD1ApD26g6PwPOH/ir7aaEgH+n1QQYSr9QizYrmug=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Fixes "packaging.version.InvalidVersion: Invalid version: 'main'"
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail 'version = "main"' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
sphinx
|
||||
];
|
||||
|
||||
# tests require seleniumbase which is not currently in nixpkgs
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "sphinxext.rediraffe" ];
|
||||
|
||||
pythonNamespaces = [ "sphinxext" ];
|
||||
|
||||
meta = {
|
||||
description = "Sphinx extension to redirect files";
|
||||
homepage = "https://github.com/wpilibsuite/sphinxext-rediraffe";
|
||||
changelog = "https://github.com/wpilibsuite/sphinxext-rediraffe/releases/tag/v${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.newam ];
|
||||
};
|
||||
}
|
||||
@@ -15862,6 +15862,8 @@ self: super: with self; {
|
||||
|
||||
sphinxext-opengraph = callPackage ../development/python-modules/sphinxext-opengraph { };
|
||||
|
||||
sphinxext-rediraffe = callPackage ../development/python-modules/sphinxext-rediraffe { };
|
||||
|
||||
spidev = callPackage ../development/python-modules/spidev { };
|
||||
|
||||
splinter = callPackage ../development/python-modules/splinter { };
|
||||
|
||||
Reference in New Issue
Block a user