mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Merge pull request #215393 from icyrockcom/pythonPackages.datetime
This commit is contained in:
commit
a0b59cafce
@ -6528,6 +6528,11 @@
|
||||
github = "icewind1991";
|
||||
githubId = 1283854;
|
||||
};
|
||||
icyrockcom = {
|
||||
github = "icyrockcom";
|
||||
githubId = 785140;
|
||||
name = "icyrock";
|
||||
};
|
||||
icy-thought = {
|
||||
name = "Icy-Thought";
|
||||
email = "gilganyx@pm.me";
|
||||
|
40
pkgs/development/python-modules/datetime/default.nix
Normal file
40
pkgs/development/python-modules/datetime/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user