uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/development/python-modules/ldap/default.nix
Normal file
44
pkgs/development/python-modules/ldap/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ buildPythonPackage, fetchPypi
|
||||
, pyasn1, pyasn1-modules
|
||||
, pythonAtLeast, pytestCheckHook
|
||||
, openldap, cyrus_sasl, lib, stdenv }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-ldap";
|
||||
version = "3.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "60464c8fc25e71e0fd40449a24eae482dcd0fb7fcf823e7de627a6525b3e0d12";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./0001-Check-whether-libldap-is-threadsafe-on-startup.patch
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ pyasn1 pyasn1-modules ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
buildInputs = [ openldap cyrus_sasl ];
|
||||
|
||||
preCheck = ''
|
||||
# Needed by tests to setup a mockup ldap server.
|
||||
export BIN="${openldap}/bin"
|
||||
export SBIN="${openldap}/bin"
|
||||
export SLAPD="${openldap}/libexec/slapd"
|
||||
export SCHEMA="${openldap}/etc/schema"
|
||||
'';
|
||||
|
||||
disabledTests = lib.optionals (pythonAtLeast "3.9") [
|
||||
# See https://github.com/python-ldap/python-ldap/issues/407
|
||||
"test_simple_bind_noarg"
|
||||
];
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python modules for implementing LDAP clients";
|
||||
homepage = "https://www.python-ldap.org/";
|
||||
license = licenses.psfl;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue