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