1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "durationpy";
11 version = "0.9";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "icholy";
16 repo = "durationpy";
17 rev = version;
18 hash = "sha256-R/cZPnUUlosGHCOcqwRJ0GJlcB6Lu5a3e5h1CQ6fysA=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 enabledTestPaths = [ "test.py" ];
26
27 pythonImportsCheck = [ "durationpy" ];
28
29 meta = {
30 description = "Module for converting between datetime.timedelta and Go's time.Duration strings";
31 homepage = "https://github.com/icholy/durationpy";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ ];
34 };
35}