matrix-synapse-saml-mapper: No more keepDotGit

Since the .git folder can change often (it is not considered stable), it
avoids random breakage if we just fix the version for setuptools_scm in
place.
This commit is contained in:
Moritz 'e1mo' Fromm 2023-08-12 12:59:22 +02:00
parent 11b87685c3
commit 3e278c3586
No known key found for this signature in database
GPG key ID: 1D5D79A439E787F1

View file

@ -148,9 +148,10 @@ final: prev:
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [( pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [(
pfinal: pprev: { pfinal: pprev: {
matrix-synapse-saml-mapper = pfinal.buildPythonPackage { matrix-synapse-saml-mapper = pfinal.buildPythonPackage rec {
pname = "matrix-synapse-saml-mapper"; pname = "matrix-synapse-saml-mapper";
version = "2020-09-21"; version = "2020-09-21";
SETUPTOOLS_SCM_PRETEND_VERSION = "0.1+chaos.jetzt.${builtins.substring 0 6 src.rev}.d${builtins.replaceStrings ["-"] [""] version}";
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
@ -161,13 +162,11 @@ final: prev:
owner = "chaos-jetzt"; owner = "chaos-jetzt";
repo = "matrix-synapse-saml-mapper"; repo = "matrix-synapse-saml-mapper";
rev = "1aca2bfc73568a1a25d4e63a52b7a8ea9bdb7272"; rev = "1aca2bfc73568a1a25d4e63a52b7a8ea9bdb7272";
hash = "sha256-mieJ8ECYr0hiniMHSnEbQAi/W9x1lsAMqV12qHtql5E="; hash = "sha256-s2AQ92VQOXg7lxjWZKsM5h+4IWnsnLRbOC2mAmr1nZo=";
leaveDotGit = true;
}; };
nativeBuildInputs = with pfinal; [ nativeBuildInputs = with pfinal; [
setuptools-scm setuptools-scm
final.git
]; ];
propagatedBuildInputs = with pfinal; [ propagatedBuildInputs = with pfinal; [
pysaml2 pysaml2