1{
2 lib,
3 buildPythonPackage,
4 python-dateutil,
5 fetchPypi,
6 isPy3k,
7 mock,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "aniso8601";
13 version = "9.0.1";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM=";
19 };
20
21 propagatedBuildInputs = [ python-dateutil ];
22
23 nativeCheckInputs = [ pytestCheckHook ] ++ lib.optional (!isPy3k) mock;
24
25 pythonImportsCheck = [ "aniso8601" ];
26
27 meta = with lib; {
28 description = "Python Parser for ISO 8601 strings";
29 homepage = "https://bitbucket.org/nielsenb/aniso8601";
30 license = with licenses; [ bsd3 ];
31 maintainers = with maintainers; [ fab ];
32 };
33}