1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 pytz,
11
12 # tests
13 pytestCheckHook,
14}:
15
16buildPythonPackage rec {
17 pname = "pyrfc3339";
18 version = "2.0.1";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "kurtraschke";
23 repo = "pyRFC3339";
24 tag = "v${version}";
25 hash = "sha256-iLzWm2xt7EuzqU0G+66sXTTvWTv1cf0BmTDciSL68+A=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [ pytz ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [
37 "pyrfc3339"
38 ];
39
40 meta = with lib; {
41 changelog = "https://github.com/kurtraschke/pyRFC3339/blob/${src.tag}/CHANGES.rst";
42 description = "Generate and parse RFC 3339 timestamps";
43 homepage = "https://github.com/kurtraschke/pyRFC3339";
44 license = licenses.mit;
45 };
46}