Files
nixpkgs/pkgs/development/python-modules/datetime/default.nix
T
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

39 lines
811 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pytz,
zope-interface,
}:
buildPythonPackage rec {
pname = "datetime";
version = "6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "datetime";
tag = version;
hash = "sha256-bxFdj9B0LUbnn/q5RcO3tBwqAMMl3Ovom036y0yfUbE=";
};
propagatedBuildInputs = [
pytz
zope-interface
];
pythonImportsCheck = [ "DateTime" ];
meta = {
description = "DateTime data type, as known from Zope";
homepage = "https://github.com/zopefoundation/DateTime";
changelog = "https://github.com/zopefoundation/DateTime/blob/${version}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = with lib.maintainers; [ icyrockcom ];
};
}