Merge pull request #252762 from mbalatsko/init-python-beautiful-date

python3Packages.beautiful-date: init at 2.2.0
This commit is contained in:
OTABI Tomoya 2023-09-04 16:01:45 +09:00 committed by GitHub
commit dda0b69e60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 0 deletions

View File

@ -10889,6 +10889,12 @@
githubId = 613740;
name = "Martin Baillie";
};
mbalatsko = {
email = "mbalatsko@gmail.com";
github = "mbalatsko";
githubId = 15967073;
name = "Maksym Balatsko";
};
mbbx6spp = {
email = "me@susanpotter.net";
github = "mbbx6spp";

View File

@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python-dateutil
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "beautiful-date";
version = "2.2.0";
format = "setuptools";
disable = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kuzmoyev";
repo = "beautiful-date";
rev = "v${version}";
hash = "sha256-5xRmHaAPf1ps75cOINHkHT1aYb5UGLZGl0OHVQaMES0=";
};
propagatedBuildInputs = [
python-dateutil
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "beautiful_date" ];
meta = with lib; {
description = "Simple and beautiful way to create date and datetime objects in Python";
homepage = "https://github.com/kuzmoyev/beautiful-date";
license = licenses.mit;
maintainers = with maintainers; [ mbalatsko ];
};
}

View File

@ -1336,6 +1336,8 @@ self: super: with self; {
beartype = callPackage ../development/python-modules/beartype { };
beautiful-date = callPackage ../development/python-modules/beautiful-date { };
beautifulsoup4 = callPackage ../development/python-modules/beautifulsoup4 {
inherit (python.pythonForBuild.pkgs) sphinxHook; # hook splicing broken since #194205
};