about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytimeparse/default.nix
blob: 44985f080a648b1c881148df59e0700261b5058f (plain) (blame)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pynose,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pytimeparse";
  version = "1.1.8";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-6GE2R3vpJNfmcGRqmFYZV+jKcwjUSEHiH13ep1dVago=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pynose ];

  pythonImportsCheck = [ "pytimeparse" ];

  meta = with lib; {
    description = "Library to parse various kinds of time expressions";
    homepage = "https://github.com/wroberts/pytimeparse";
    changelog = "https://github.com/wroberts/pytimeparse/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ vrthra ];
  };
}