1{
2 lib,
3 buildPythonPackage,
4 dnspython,
5 fetchFromGitHub,
6 hatchling,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "pyisemail";
13 version = "2.0.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "michaelherold";
20 repo = "pyIsEmail";
21 tag = "v${version}";
22 hash = "sha256-bJCaVUhvEAoQ8zMsbcb1Et728XHt+shEPhhBzPzY/vo=";
23 };
24
25 nativeBuildInputs = [ hatchling ];
26
27 propagatedBuildInputs = [ dnspython ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "pyisemail" ];
32
33 meta = with lib; {
34 description = "Module for email validation";
35 homepage = "https://github.com/michaelherold/pyIsEmail";
36 changelog = "https://github.com/michaelherold/pyIsEmail/blob/${version}/CHANGELOG.rst";
37 license = licenses.mit;
38 maintainers = with maintainers; [ fab ];
39 };
40}