2021-12-02 15:24:26 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
django,
|
|
|
|
fetchPypi,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
|
|
|
}:
|
2021-04-20 17:56:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-formtools";
|
2024-02-17 21:38:47 +00:00
|
|
|
version = "2.5.1";
|
|
|
|
pyproject = true;
|
2021-12-02 15:24:26 +00:00
|
|
|
|
2024-02-17 21:38:47 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-04-20 17:56:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-17 21:38:47 +00:00
|
|
|
hash = "sha256-R8s0VSxu/KCIhj1pMoTQT8NuqvNQ6yHhodk14N9SPJM=";
|
2021-04-20 17:56:04 +00:00
|
|
|
};
|
|
|
|
|
2021-12-02 15:24:26 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2021-04-20 17:56:04 +00:00
|
|
|
checkPhase = ''
|
2024-02-17 21:38:47 +00:00
|
|
|
runHook preCheck
|
|
|
|
|
2021-04-20 17:56:04 +00:00
|
|
|
${python.interpreter} -m django test --settings=tests.settings
|
2024-02-17 21:38:47 +00:00
|
|
|
|
|
|
|
runHook postCheck
|
2021-04-20 17:56:04 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-02 15:24:26 +00:00
|
|
|
pythonImportsCheck = [ "formtools" ];
|
|
|
|
|
2021-04-20 17:56:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Set of high-level abstractions for Django forms";
|
|
|
|
homepage = "https://github.com/jazzband/django-formtools";
|
2024-02-17 21:38:47 +00:00
|
|
|
changelog = "https://github.com/jazzband/django-formtools/blob/master/docs/changelog.rst";
|
2021-04-20 17:56:04 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
greizgh
|
|
|
|
schmittlauch
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|