depot/third_party/nixpkgs/pkgs/development/python-modules/k5test/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

43 lines
870 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, substituteAll
, findutils
, krb5
, stdenv
}:
buildPythonPackage rec {
pname = "k5test";
version = "0.10.3";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-nJ3uvK1joxXoGDPUXp/RK/IBZmQ7iry5/29NaxhMVx8=";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit findutils krb5;
# krb5-config is in dev output
krb5Dev = krb5.dev;
})
];
# No tests
doCheck = false;
pythonImportsCheck = [ "k5test" ];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
description = "Library for setting up self-contained Kerberos 5 environment";
homepage = "https://github.com/pythongssapi/k5test";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}