depot/third_party/nixpkgs/pkgs/development/python-modules/k5test/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

44 lines
855 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, substituteAll
, findutils
, krb5
, stdenv
}:
buildPythonPackage rec {
pname = "k5test";
version = "0.10.3";
format = "setuptools";
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.isDarwin;
description = "Library for setting up self-contained Kerberos 5 environment";
homepage = "https://github.com/pythongssapi/k5test";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}