1{ lib
2, buildPythonPackage
3, fetchPypi
4, hypothesis
5, poetry-core
6, pytestCheckHook
7, pytz
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "iso8601";
13 version = "1.1.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-MoEee4He7iBj6m0ulPiBmobR84EeSdI2I6QfqDK+8D8=";
21 };
22
23 nativeBuildInputs = [
24 poetry-core
25 ];
26
27 nativeCheckInputs = [
28 # "hypothesis" indirectly depends on iso8601 to build its documentation
29 (hypothesis.override { enableDocumentation = false; })
30 pytestCheckHook
31 pytz
32 ];
33
34 pytestFlagsArray = [
35 "iso8601"
36 ];
37
38 pythonImportsCheck = [
39 "iso8601"
40 ];
41
42 meta = with lib; {
43 description = "Simple module to parse ISO 8601 dates";
44 homepage = "https://pyiso8601.readthedocs.io/";
45 license = with licenses; [ mit ];
46 maintainers = with maintainers; [ fab ];
47 };
48}