3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/django-formtools/default.nix

45 lines
845 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, django
, fetchPypi
, python
, pythonOlder
, setuptools-scm
}:
2021-04-20 18:56:04 +01:00
buildPythonPackage rec {
pname = "django-formtools";
version = "2.3";
format = "setuptools";
disabled = pythonOlder "3.6";
2021-04-20 18:56:04 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "9663b6eca64777b68d6d4142efad8597fe9a685924673b25aa8a1dcff4db00c3";
2021-04-20 18:56:04 +01:00
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
django
];
2021-04-20 18:56:04 +01:00
checkPhase = ''
${python.interpreter} -m django test --settings=tests.settings
'';
pythonImportsCheck = [
"formtools"
];
2021-04-20 18:56:04 +01:00
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 ];
};
}