From 8cc2efce4a5c01d5efaf86767ee6a33a985cf5ae Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 30 Mar 2022 11:41:48 +0200 Subject: [PATCH] python3Packages.msldap: disable on older Python releases --- pkgs/development/python-modules/msldap/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/msldap/default.nix b/pkgs/development/python-modules/msldap/default.nix index d70d5e128f88..7a2a2611d3cd 100644 --- a/pkgs/development/python-modules/msldap/default.nix +++ b/pkgs/development/python-modules/msldap/default.nix @@ -8,15 +8,19 @@ , tqdm , winacl , winsspi +, pythonOlder }: buildPythonPackage rec { pname = "msldap"; version = "0.3.38"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-zJEp8/jPTAb3RpzyXySdtVl2uSLpSirGkJh7GB/3Qwc="; + hash = "sha256-zJEp8/jPTAb3RpzyXySdtVl2uSLpSirGkJh7GB/3Qwc="; }; propagatedBuildInputs = [ @@ -31,7 +35,10 @@ buildPythonPackage rec { # Project doesn't have tests doCheck = false; - pythonImportsCheck = [ "msldap" ]; + + pythonImportsCheck = [ + "msldap" + ]; meta = with lib; { description = "Python LDAP library for auditing MS AD";