blob: 9a27194de7b57e53c522e3e3b0d8269ffc3c7248 (
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
40
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
pytestCheckHook,
poetry-core,
pytest-mock,
}:
buildPythonPackage rec {
pname = "timelength";
version = "3.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "EtorixDev";
repo = "timelength";
tag = "v${version}";
hash = "sha256-iaAtDkx6jPPB7s+sTQsrfNFiwerSDZ+7y7C9oNNYEmg=";
};
build-system = [
poetry-core
];
pythonImportsCheck = [ "timelength" ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
meta = {
description = "Flexible python duration parser designed for human readable lengths of time";
homepage = "https://github.com/EtorixDev/timelength/";
changelog = "https://github.com/EtorixDev/timelength/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ vinetos ];
};
}
|