blob: e41f18c130114a29089663439438c083ab85cc2d (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
textx,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "strpdatetime";
version = "0.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "RhetTbull";
repo = "strpdatetime";
tag = "v${finalAttrs.version}";
hash = "sha256-p/iLq+x+dRW2QPva/VEA9emtxb0k3hnL91l1itTsYSc=";
};
build-system = [ hatchling ];
dependencies = [ textx ];
pythonRelaxDeps = [ "textx" ];
patches = [ ./fix-locale.patch ];
pythonImportsCheck = [ "strpdatetime" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Parse strings into Python datetime objects";
license = lib.licenses.psfl;
changelog = "https://github.com/RhetTbull/strpdatetime/blob/${finalAttrs.src.tag}/CHANGELOG.md";
homepage = "https://github.com/RhetTbull/strpdatetime";
maintainers = with lib.maintainers; [ sigmanificient ];
};
})
|