Skip to content

Commit

Permalink
Mark python3Packages.krb5 broken and fix requests-kerberos on Darwin (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Aug 28, 2024
2 parents 63474ef + 951f578 commit 7d31b51
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/krb5/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
cython,
fetchPypi,
Expand Down Expand Up @@ -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
};
}
14 changes: 9 additions & 5 deletions pkgs/development/python-modules/requests-kerberos/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
cryptography,
fetchFromGitHub,
Expand All @@ -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
Expand Down

0 comments on commit 7d31b51

Please sign in to comment.