Unverified Commit 194fc7cb authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files
parent 231bf43f
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -9,27 +9,30 @@

python3Packages.buildPythonPackage rec {
  pname = "yubikey-manager";
  version = "5.7.2";
  version = "5.8.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Yubico";
    repo = "yubikey-manager";
    tag = version;
    hash = "sha256-dgOi9gJ7jO3+EjZQjHfx+KDsBtj6b4JWR3Bp9xWM6FI=";
    hash = "sha256-Z3krdKP6hhhIxN7nl/k5r30jFVC0kZK9Z6Aqllp/KrA=";
  };

  postPatch = ''
    substituteInPlace "ykman/pcsc/__init__.py" \
      --replace 'pkill' '${if stdenv.hostPlatform.isLinux then procps else "/usr"}/bin/pkill'
      --replace-fail 'pkill' '${if stdenv.hostPlatform.isLinux then procps else "/usr"}/bin/pkill'
  '';

  nativeBuildInputs = with python3Packages; [
    poetry-core
  nativeBuildInputs = [
    installShellFiles
  ];

  propagatedBuildInputs = with python3Packages; [
  build-system = with python3Packages; [
    poetry-core
  ];

  dependencies = with python3Packages; [
    cryptography
    pyscard
    fido2
@@ -37,10 +40,6 @@ python3Packages.buildPythonPackage rec {
    keyring
  ];

  pythonRelaxDeps = [
    "keyring"
  ];

  postInstall = ''
    installManPage man/ykman.1