83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
44 lines
830 B
Nix
44 lines
830 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, django
|
|
, fetchPypi
|
|
, python
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-formtools";
|
|
version = "2.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-3rkyvlWx2UGeN9xNZd+/640we3HIwR/VLxWaul/A3u0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m django test --settings=tests.settings
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"formtools"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A set of high-level abstractions for Django forms";
|
|
homepage = "https://github.com/jazzband/django-formtools";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ greizgh schmittlauch ];
|
|
};
|
|
}
|