0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-18 16:10:19 +03:00

Mark python3Packages.krb5 broken and fix requests-kerberos on Darwin (#337576)

This commit is contained in:
Sandro 2024-08-28 13:37:23 +02:00 committed by GitHub
commit 7d31b51a62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 5 deletions

View file

@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
cython,
fetchPypi,
@ -42,5 +43,6 @@ buildPythonPackage rec {
homepage = "https://github.com/jborean93/pykrb5";
license = licenses.mit;
maintainers = teams.deshaw.members;
broken = stdenv.isDarwin; # TODO: figure out how to build on Darwin
};
}

View file

@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
cryptography,
fetchFromGitHub,
@ -24,11 +25,14 @@ buildPythonPackage rec {
hash = "sha256-s1Q3zqKPSuTkiFExr+axai9Eta1xjw/cip8xzfDGR88=";
};
propagatedBuildInputs = [
cryptography
requests
pyspnego
] ++ pyspnego.optional-dependencies.kerberos;
propagatedBuildInputs =
[
cryptography
requests
pyspnego
]
# Avoid broken Python krb5 package on Darwin
++ lib.optionals (!stdenv.isDarwin) pyspnego.optional-dependencies.kerberos;
nativeCheckInputs = [
pytestCheckHook