-
-
Notifications
You must be signed in to change notification settings - Fork 259
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 #515 from zmitchell/poetry-to-nixpkgs
Switch from poetry to nixpkgs
- Loading branch information
Showing
5 changed files
with
92 additions
and
1,139 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
final: prev: let | ||
python-module-sphinx-sitemap = { | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
sphinx, | ||
pytest, | ||
}: let | ||
pname = "sphinx-sitemap"; | ||
version = "2.5.1"; | ||
in | ||
buildPythonPackage { | ||
inherit pname version; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "sha256-mEvvBou9vCbPriCai2E5LpaBq8kZG0d80w2kBuOmDuU="; | ||
}; | ||
|
||
propagatedBuildInputs = [ | ||
sphinx | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
pytest | ||
]; | ||
|
||
doCheck = true; | ||
checkPhase = '' | ||
pytest --fixtures tests | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Sitemap generator for Sphinx"; | ||
homepage = "https://github.com/jdillard/sphinx-sitemap"; | ||
maintainers = with maintainers; [ ]; | ||
license = licenses.mit; | ||
}; | ||
}; | ||
in { | ||
python310 = prev.python310.override { | ||
packageOverrides = python-final: python-prev: { | ||
sphinx-sitemap = python-module-sphinx-sitemap { | ||
inherit (prev) lib; | ||
inherit (python-prev) buildPythonPackage fetchPypi pytest; | ||
inherit (python-prev.pkgs) sphinx; | ||
}; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.