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
58
pkgs/development/python-modules/django-auth-ldap/default.nix
Normal file
58
pkgs/development/python-modules/django-auth-ldap/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
|
||||
# buildtime
|
||||
, setuptools-scm
|
||||
|
||||
# runtime
|
||||
, ldap
|
||||
, django
|
||||
|
||||
# tests
|
||||
, python
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-auth-ldap";
|
||||
version = "4.1.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-d/dJ07F4B86OtWqcnI5XRv8xZWf4HVumE0ldnHSVqUk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
ldap
|
||||
];
|
||||
|
||||
# ValueError: SCHEMADIR is None, ldap schemas are missing.
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
export PATH=${pkgs.openldap}/bin:${pkgs.openldap}/libexec:$PATH
|
||||
${python.interpreter} -m django test --settings tests.settings
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "django_auth_ldap" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Django authentication backend that authenticates against an LDAP service";
|
||||
homepage = "https://github.com/django-auth-ldap/django-auth-ldap";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ mmai ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue