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
43 lines
867 B
Nix
43 lines
867 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchPypi,
|
|
python,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-formtools";
|
|
version = "2.5.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-R8s0VSxu/KCIhj1pMoTQT8NuqvNQ6yHhodk14N9SPJM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
${python.interpreter} -m django test --settings=tests.settings
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "formtools" ];
|
|
|
|
meta = {
|
|
description = "Set of high-level abstractions for Django forms";
|
|
homepage = "https://github.com/jazzband/django-formtools";
|
|
changelog = "https://github.com/jazzband/django-formtools/blob/master/docs/changelog.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [
|
|
];
|
|
};
|
|
}
|