3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #215393 from icyrockcom/pythonPackages.datetime

This commit is contained in:
Sandro 2023-04-29 22:57:43 +02:00 committed by GitHub
commit a0b59cafce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 0 deletions

View file

@ -6528,6 +6528,11 @@
github = "icewind1991";
githubId = 1283854;
};
icyrockcom = {
github = "icyrockcom";
githubId = 785140;
name = "icyrock";
};
icy-thought = {
name = "Icy-Thought";
email = "gilganyx@pm.me";

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytz
, zope_interface
}:
buildPythonPackage rec {
pname = "datetime";
version = "5.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "datetime";
rev = "refs/tags/${version}";
hash = "sha256-5H7s2y/2zsQC3Azs1yakotO8ZVLCRV8yPahbX09C5L8=";
};
propagatedBuildInputs = [
pytz
zope_interface
];
pythonImportsCheck = [
"DateTime"
];
meta = with lib; {
description = "DateTime data type, as known from Zope";
homepage = "https://github.com/zopefoundation/DateTime";
changelog = "https://github.com/zopefoundation/DateTime/releases/tag/${version}";
license = licenses.zpl21;
maintainers = with maintainers; [ icyrockcom ];
};
}

View file

@ -2318,6 +2318,8 @@ self: super: with self; {
dateparser = callPackage ../development/python-modules/dateparser { };
datetime = callPackage ../development/python-modules/datetime { };
dateutils = callPackage ../development/python-modules/dateutils { };
datrie = callPackage ../development/python-modules/datrie { };