1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools-scm
5, six
6}:
7
8buildPythonPackage rec {
9 pname = "python-dateutil";
10 version = "2.8.2";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "sha256-ASPKzBYnrhnd88J6XeW9Z+5FhvvdZEDZdI+Ku0g9PoY=";
15 };
16
17 nativeBuildInputs = [ setuptools-scm ];
18
19 propagatedBuildInputs = [ six ];
20
21 # cyclic dependency: tests need freezegun, which depends on python-dateutil
22 doCheck = false;
23
24 pythonImportsCheck = [
25 "dateutil.easter"
26 "dateutil.parser"
27 "dateutil.relativedelta"
28 "dateutil.rrule"
29 "dateutil.tz"
30 "dateutil.utils"
31 "dateutil.zoneinfo"
32 ];
33
34 meta = with lib; {
35 description = "Powerful extensions to the standard datetime module";
36 homepage = "https://github.com/dateutil/dateutil/";
37 license = with licenses; [ asl20 bsd3 ];
38 maintainers = with maintainers; [ dotlambda ];
39 };
40}