1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 freezegun,
6 python-dateutil,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "beautiful-date";
13 version = "2.3.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "kuzmoyev";
20 repo = "beautiful-date";
21 tag = "v${version}";
22 hash = "sha256-e6YJBaDwWqVehxBPOvsIdV4FIXlIwj29H5untXGJvT0=";
23 };
24
25 propagatedBuildInputs = [ python-dateutil ];
26
27 nativeCheckInputs = [
28 freezegun
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "beautiful_date" ];
33
34 meta = with lib; {
35 description = "Simple and beautiful way to create date and datetime objects";
36 homepage = "https://github.com/kuzmoyev/beautiful-date";
37 license = licenses.mit;
38 maintainers = with maintainers; [ mbalatsko ];
39 };
40}