Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyisemail / default.nix
blobdfa60a85eaf65c83af8158386256f0e76c417831
1 { lib
2 , buildPythonPackage
3 , dnspython
4 , fetchFromGitHub
5 , hatchling
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "pyisemail";
12   version = "2.0.1";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "michaelherold";
19     repo = "pyIsEmail";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-bJCaVUhvEAoQ8zMsbcb1Et728XHt+shEPhhBzPzY/vo=";
22   };
24   nativeBuildInputs = [
25     hatchling
26   ];
28   propagatedBuildInputs = [
29     dnspython
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "pyisemail"
38   ];
40   meta = with lib; {
41     description = "Module for email validation";
42     homepage = "https://github.com/michaelherold/pyIsEmail";
43     changelog = "https://github.com/michaelherold/pyIsEmail/blob/${version}/CHANGELOG.rst";
44     license = licenses.mit;
45     maintainers = with maintainers; [ fab ];
46   };