nixpkgs/pkgs/development/python-modules/django-formtools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
972 B
Nix
Raw Permalink Normal View History

{
lib,
buildPythonPackage,
django,
fetchPypi,
python,
pythonOlder,
setuptools-scm,
}:
2021-04-20 17:56:04 +00:00
buildPythonPackage rec {
pname = "django-formtools";
version = "2.5.1";
pyproject = true;
disabled = pythonOlder "3.8";
2021-04-20 17:56:04 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-R8s0VSxu/KCIhj1pMoTQT8NuqvNQ6yHhodk14N9SPJM=";
2021-04-20 17:56:04 +00:00
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ django ];
2021-04-20 17:56:04 +00:00
checkPhase = ''
runHook preCheck
2021-04-20 17:56:04 +00:00
${python.interpreter} -m django test --settings=tests.settings
runHook postCheck
2021-04-20 17:56:04 +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";
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
];
};
}