python39Packages.sphinx: fix reproducibility (#172642)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Artturi 2022-05-12 14:03:34 +03:00 committed by GitHub
parent 5a4412d6ee
commit ade93faa94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,6 +51,12 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "docutils>=0.14,<0.18" "docutils>=0.14"
# remove impurity caused by date inclusion
# https://github.com/sphinx-doc/sphinx/blob/master/setup.cfg#L4-L6
substituteInPlace setup.cfg \
--replace "tag_build = .dev" "" \
--replace "tag_date = true" ""
'';
propagatedBuildInputs = [