Files
nixpkgs/pkgs/development/python-modules/python-dateutil/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.1 KiB
Nix

{
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 = {
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 lib.licenses; [
asl20
bsd3
];
maintainers = with lib.maintainers; [ dotlambda ];
};
}