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
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
setuptools,
|
|
docopt,
|
|
dj-database-url,
|
|
python,
|
|
django-filer,
|
|
six,
|
|
django-app-helper,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-app-helper";
|
|
version = "3.3.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nephila";
|
|
repo = "django-app-helper";
|
|
tag = version;
|
|
hash = "sha256-gnTEzmQ4h4FWc2+s68VW/yVAkKFdj4U2VMkJKTAnQOM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
dj-database-url
|
|
docopt
|
|
six
|
|
];
|
|
|
|
checkInputs = [ django-filer ];
|
|
|
|
# Tests depend on django-filer, which depends on this package.
|
|
# To avoid infinite recursion, we only enable tests when building passthru.tests.
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} helper.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "app_helper" ];
|
|
|
|
passthru.tests = {
|
|
runTests = django-app-helper.overrideAttrs (_: {
|
|
doCheck = true;
|
|
});
|
|
};
|
|
|
|
meta = {
|
|
description = "Helper for Django applications development";
|
|
homepage = "https://django-app-helper.readthedocs.io";
|
|
changelog = "https://github.com/nephila/django-app-helper/releases/tag/${src.tag}";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = [ lib.maintainers.onny ];
|
|
};
|
|
}
|