about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyrfc3339/default.nix
blob: bf2abeb811d6fee96d6287e60c2a5275b3ed80e9 (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,

  # build-system
  setuptools,

  # dependencies
  pytz,
}:

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

  src = fetchPypi {
    pname = "pyRFC3339";
    inherit version;
    sha256 = "06jv7ar7lpvvk0dixzwdr3wgm0g1lipxs429s2z7knwwa7hwpf41";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [ pytz ];

  doCheck = false; # tests are not including in PyPI tarball

  meta = with lib; {
    description = "Generate and parse RFC 3339 timestamps";
    homepage = "https://github.com/kurtraschke/pyRFC3339";
    license = licenses.mit;
  };
}