summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyrfc3339/default.nix
blob: 19ad6dbe580827a0f236aaa20fae7962f89db8ed (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
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  pytz,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pyrfc3339";
  version = "2.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kurtraschke";
    repo = "pyRFC3339";
    tag = "v${version}";
    hash = "sha256-iLzWm2xt7EuzqU0G+66sXTTvWTv1cf0BmTDciSL68+A=";
  };

  build-system = [ setuptools ];

  dependencies = [ pytz ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "pyrfc3339"
  ];

  meta = {
    changelog = "https://github.com/kurtraschke/pyRFC3339/blob/${src.tag}/CHANGES.rst";
    description = "Generate and parse RFC 3339 timestamps";
    homepage = "https://github.com/kurtraschke/pyRFC3339";
    license = lib.licenses.mit;
  };
}