1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django-taggit,
|
|
django,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "django-autocomplete-light";
|
|
version = "3.12.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yourlabs";
|
|
repo = "django-autocomplete-light";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-ctNbbmTUgrkLGCo7tgPIJpLn7RmkZSuj54/5RBe/sdA=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ django ];
|
|
|
|
optional-dependencies = {
|
|
tags = [ django-taggit ];
|
|
# nested = [ django-nested-admin ];
|
|
# genericm2m = [ django-generic-m2m ];
|
|
# gfk = [ django-querysetsequence ];
|
|
};
|
|
|
|
# Too many un-packaged dependencies
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "dal" ];
|
|
|
|
meta = {
|
|
description = "Fresh approach to autocomplete implementations, specially for Django";
|
|
homepage = "https://django-autocomplete-light.readthedocs.io";
|
|
changelog = "https://github.com/yourlabs/django-autocomplete-light/blob/${finalAttrs.version}/CHANGELOG";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ ambroisie ];
|
|
};
|
|
})
|