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

buildPythonPackage rec {
  pname = "isodate";
  version = "0.6.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "SMWIHefosKDWSMsCTIBi3ITnuEDtgehkx2FP08Envek=";
  };

  propagatedBuildInputs = [ six ];

  nativeCheckInputs = [ unittestCheckHook ];

  unittestFlagsArray = [ "-s" "src/isodate/tests" ];

  meta = with lib; {
    description = "ISO 8601 date/time parser";
    homepage = "http://cheeseshop.python.org/pypi/isodate";
    license = licenses.bsd0;
  };

}