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