aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/isodate/default.nix
blob: 72ad4c290c19e0db279e6822ee314654d58c5ea6 (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
{ stdenv, buildPythonPackage, fetchPypi, python, isPy3k, six }:

buildPythonPackage rec {
  pname = "isodate";
  version = "0.6.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1n7jkz68kk5pwni540pr5zdh99bf6ywydk1p5pdrqisrawylldif";
  };

  propagatedBuildInputs = [ six ];

  # Judging from SyntaxError
  doCheck = !(isPy3k);

  checkPhase = ''
    ${python.interpreter} -m unittest discover -s src/isodate/tests
  '';

  meta = with stdenv.lib; {
    description = "ISO 8601 date/time parser";
    homepage = http://cheeseshop.python.org/pypi/isodate;
    license = licenses.bsd3;
    maintainers = with maintainers; [ stesie ];
  };
}