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