depot/third_party/nixpkgs/pkgs/development/python-modules/django-formtools/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

44 lines
832 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;
sha256 = "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 ];
};
}