Merge pull request #137264 from yu-re-ka/feature/yubikey-manager

yubikey-manager: patch path of pkill binary
This commit is contained in:
Jörg Thalheim
2021-09-10 13:24:58 +01:00
committed by GitHub
+6 -1
View File
@@ -1,4 +1,4 @@
{ python3Packages, fetchFromGitHub, lib, yubikey-personalization, libu2f-host, libusb1 }:
{ python3Packages, fetchFromGitHub, lib, yubikey-personalization, libu2f-host, libusb1, procps }:
python3Packages.buildPythonPackage rec {
pname = "yubikey-manager";
@@ -11,6 +11,11 @@ python3Packages.buildPythonPackage rec {
sha256 = "sha256:0ycp7k6lkxzqwkc16fifhyqaqi7hl3351pwddsn18r5l83jnzdn2";
};
postPatch = ''
substituteInPlace "ykman/pcsc/__init__.py" \
--replace '/usr/bin/pkill' '${procps}/bin/pkill'
'';
format = "pyproject";
nativeBuildInputs = with python3Packages; [ poetry-core ];