summary refs log tree commit diff
path: root/pkgs/development/python-modules/aniso8601/default.nix
blob: 9cc3fb8277559d04595bfd97e9779dd56be8ca5a (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
, dateutil
, fetchPypi
, isPy3k
, mock
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "aniso8601";
  version = "9.0.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM=";
  };

  propagatedBuildInputs = [
    dateutil
  ];

  checkInputs = [
    pytestCheckHook
  ] ++ lib.optional (!isPy3k) mock;

  pythonImportsCheck = [ "aniso8601" ];

  meta = with lib; {
    description = "Python Parser for ISO 8601 strings";
    homepage = "https://bitbucket.org/nielsenb/aniso8601";
    license = with licenses; [ bsd3 ];
    maintainers = with maintainers; [ fab ];
  };
}