1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 python-dateutil,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "aniso8601";
13 version = "10.0.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.10";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-JUiPhmPdFSiuH1T5SsHqUa4ltNUxU5uLxwf+0YTRaEU=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ python-dateutil ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "aniso8601" ];
30
31 meta = with lib; {
32 description = "Python Parser for ISO 8601 strings";
33 homepage = "https://bitbucket.org/nielsenb/aniso8601";
34 changelog = "https://bitbucket.org/nielsenb/aniso8601/src/v${version}/CHANGELOG.rst";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ fab ];
37 };
38}