about summary refs log tree commit diff
path: root/pkgs/development/python-modules/jsondate/default.nix
blob: 91190c8528fa98e3870a8d614950acbe1fb023a0 (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
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  six,
}:

buildPythonPackage rec {
  version = "0.1.3";
  format = "setuptools";
  pname = "jsondate";

  src = fetchFromGitHub {
    owner = "ilya-kolpakov";
    repo = "jsondate";
    rev = "refs/tags/v${version}";
    sha256 = "0nhvi48nc0bmad5ncyn6c9yc338krs3xf10bvv55xgz25c5gdgwy";
    fetchSubmodules = true; # Fetching by tag does not work otherwise
  };

  propagatedBuildInputs = [ six ];

  meta = {
    homepage = "https://github.com/ilya-kolpakov/jsondate";
    description = "JSON with datetime handling";
    license = lib.licenses.mit;
  };
}