1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 pytz,
8}:
9
10buildPythonPackage rec {
11 pname = "ciso8601";
12 version = "2.3.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "closeio";
17 repo = "ciso8601";
18 tag = "v${version}";
19 hash = "sha256-oVnQ0vHhWs8spfOnJOgTJ6MAHcY8VGZHZ0E/T8JsKqE=";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [
25 pytestCheckHook
26 pytz
27 ];
28
29 enabledTestPaths = [ "tests/tests.py" ];
30
31 pythonImportsCheck = [ "ciso8601" ];
32
33 meta = with lib; {
34 description = "Fast ISO8601 date time parser for Python written in C";
35 homepage = "https://github.com/closeio/ciso8601";
36 changelog = "https://github.com/closeio/ciso8601/blob/v${version}/CHANGELOG.md";
37 license = licenses.mit;
38 maintainers = with maintainers; [ mic92 ];
39 };
40}