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
37 lines
794 B
Nix
37 lines
794 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchPypi,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-environ";
|
|
version = "0.12.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "django_environ";
|
|
inherit version;
|
|
hash = "sha256-In3IkUU91b3nacNEnPSnS28u6PerI2HJOgcGj0F5BBo=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
buildInputs = [ django ];
|
|
|
|
# The testsuite fails to modify the base environment
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "environ" ];
|
|
|
|
meta = {
|
|
description = "Utilize environment variables to configure your Django application";
|
|
homepage = "https://github.com/joke2k/django-environ/";
|
|
changelog = "https://github.com/joke2k/django-environ/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|