summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/datefinder/default.nix
blob: 953bd24bb409f1dec854f6a7f4af23d753810c07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  python-dateutil,
  pytz,
  regex,
}:

buildPythonPackage rec {
  pname = "datefinder";
  version = "0.7.3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "akoumjian";
    repo = "datefinder";
    tag = "v${version}";
    hash = "sha256-uOSwS+mHgbvEL+rTfs4Ax9NvJnhYemxFVqqDssy2i7g=";
  };

  propagatedBuildInputs = [
    regex
    pytz
    python-dateutil
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "datefinder" ];

  meta = {
    description = "Extract datetime objects from strings";
    homepage = "https://github.com/akoumjian/datefinder";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      de11n
      despsyched
    ];
  };
}