Merge pull request #250111 from tjni/ansible-doctor

ansible-doctor: use poetry-dynamic-versioning like upstream
This commit is contained in:
Theodore Ni 2023-08-22 10:50:08 -07:00 committed by GitHub
commit 098b9921f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, python3 , python3
}: }:
@ -15,15 +16,20 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-nZv1PdR0kGrke2AjcDWjDWBdsw64UpHYFNDFAe/UoJo="; hash = "sha256-nZv1PdR0kGrke2AjcDWjDWBdsw64UpHYFNDFAe/UoJo=";
}; };
pythonRelaxDeps = true; patches = [
# https://github.com/thegeeklab/ansible-doctor/pull/541
(fetchpatch {
name = "poetry-dynamic-versioning-pep517.patch";
url = "https://github.com/thegeeklab/ansible-doctor/commit/b77ba9dccaef4b386bd54b128136c948665eb61a.patch";
hash = "sha256-XfdTkRk9B857V5DQnxlbwxTb098YwHzKGzNQBTQzWCM=";
})
];
postPatch = '' pythonRelaxDeps = true;
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"'
'';
nativeBuildInputs = with python3.pkgs; [ nativeBuildInputs = with python3.pkgs; [
poetry-core poetry-core
poetry-dynamic-versioning
pythonRelaxDepsHook pythonRelaxDepsHook
]; ];