blob: 71def22fc9c515017df9ce33567b5580ebab1aa7 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
six,
}:
buildPythonPackage rec {
pname = "python-dateutil";
version = "2.9.0.post0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-N91UII2n4c2HU4ghfV4A69QXkkn5D7ckN+kaNUWaCtM=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools_scm<8.0" "setuptools_scm"
'';
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ six ];
# cyclic dependency: tests need freezegun, which depends on python-dateutil
doCheck = false;
pythonImportsCheck = [
"dateutil.easter"
"dateutil.parser"
"dateutil.relativedelta"
"dateutil.rrule"
"dateutil.tz"
"dateutil.utils"
"dateutil.zoneinfo"
];
meta = with lib; {
changelog = "https://github.com/dateutil/dateutil/blob/${version}/NEWS";
description = "Powerful extensions to the standard datetime module";
homepage = "https://github.com/dateutil/dateutil/";
license = with licenses; [
asl20
bsd3
];
maintainers = with maintainers; [ dotlambda ];
};
}
|