3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #154675 from mweinelt/ykman

yubikey-manager: fix build
This commit is contained in:
Lassulus 2022-01-12 00:12:41 +01:00 committed by GitHub
commit 47d693f2f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 =