about summary refs log tree commit diff
path: root/pkgs/development/python-modules/snaptime/default.nix
blob: 8f148eba4e68e3feee8fb3d995e707e0543e38af (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
36
37
38
39
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, python-dateutil
, pytz
}:

buildPythonPackage rec {
  pname = "snaptime";
  version = "0.2.4";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-4/HriQQ9WNMHIauYy2UCPxpMJ0DjsZdwQpixY8ktUIs=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  dependencies = [
    python-dateutil
    pytz
  ];

  pythonImportsCheck = [ "snaptime" ];

  # no tests on Pypi, no tags on github
  doCheck = false;

  meta = with lib; {
    description = "Transform timestamps with a simple DSL";
    homepage = "https://github.com/zartstrom/snaptime";
    license = licenses.mit;
    maintainers = with maintainers; [ pbsds ];
  };
}