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 = "2.0.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-c5lg03x0x3vZvVRqdlYsy1gf49SCD/XDFB60nIOf2o8=";
21 };
22
23 nativeBuildInputs = [
24 poetry-core
25 ];
26
27 nativeCheckInputs = [
28 hypothesis
29 pytestCheckHook
30 pytz
31 ];
32
33 pytestFlagsArray = [
34 "iso8601"
35 ];
36
37 pythonImportsCheck = [
38 "iso8601"
39 ];
40
41 meta = with lib; {
42 description = "Simple module to parse ISO 8601 dates";
43 homepage = "https://pyiso8601.readthedocs.io/";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}