summary refs log tree commit diff
path: root/pkgs/development/python-modules/isodate/default.nix
blob: 425a295e5a533419d52b897c7fa5eb3d24278c43 (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
{ stdenv
, buildPythonPackage
, fetchPypi
, python
, six
}:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "2e364a3d5759479cdb2d37cce6b9376ea504db2ff90252a2e5b7cc89cc9ff2d8";
  };

  propagatedBuildInputs = [ six ];

  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.bsd0;
  };

}