33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{ lib
|
|
, fetchPypi
|
|
, fetchpatch
|
|
, buildPythonPackage
|
|
, flask
|
|
, itsdangerous
|
|
, wtforms
|
|
, email-validator
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-wtf";
|
|
version = "1.0.1";
|
|
|
|
src = fetchPypi {
|
|
pname = "Flask-WTF";
|
|
inherit version;
|
|
sha256 = "34fe5c6fee0f69b50e30f81a3b7ea16aa1492a771fe9ad0974d164610c09a6c9";
|
|
};
|
|
|
|
patches = [
|
|
# Fix failing `test_set_default_message_language` test
|
|
#
|
|
# Caused by Flask 2.2 that throws an error when setup methods are
|
|
# mistakenly called before the first request.
|
|
#
|
|
# Will be fixed upstream with: https://github.com/wtforms/flask-wtf/pull/533
|
|
#
|
|
(fetchpatch {
|
|
url = "https://github.com/wtforms/flask-wtf/commit/36a53fadf7bc42c79a1428657531961ec30ca003.patch";
|
|
hash = "sha256-bgLwDG9Wpufm6fd/6PS83Jvvuk1Ha6XdyaWngluPs30=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
itsdangerous
|
|
wtforms
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
email = [ email-validator ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Simple integration of Flask and WTForms.";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ mic92 anthonyroussel ];
|
|
homepage = "https://github.com/lepture/flask-wtf/";
|
|
};
|
|
}
|