yubikey-manager: fix build

Closes: #154673
This commit is contained in:
Martin Weinelt 2022-01-12 00:01:53 +01:00
parent be1896bdd9
commit 7d8d3c7122
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -3,6 +3,7 @@
python3Packages.buildPythonPackage rec {
pname = "yubikey-manager";
version = "4.0.7";
format = "pyproject";
src = fetchFromGitHub {
repo = "yubikey-manager";
@ -12,12 +13,12 @@ python3Packages.buildPythonPackage rec {
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'cryptography = "^2.1 || ^3.0"' 'cryptography = "*"'
substituteInPlace "ykman/pcsc/__init__.py" \
--replace '/usr/bin/pkill' '${procps}/bin/pkill'
--replace 'pkill' '${procps}/bin/pkill'
'';
format = "pyproject";
nativeBuildInputs = with python3Packages; [ poetry-core ];
propagatedBuildInputs =