1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 pytestCheckHook,
8 pytest-cov-stub,
9}:
10
11buildPythonPackage rec {
12 pname = "hightime";
13 version = "0.2.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "ni";
18 repo = "hightime";
19 rev = "v${version}";
20 hash = "sha256-P/ZP5smKyNg18YGYWpm/57YGFY3MrX1UIVDU5RsF+rA=";
21 };
22
23 disabled = pythonOlder "3.7";
24
25 build-system = [
26 setuptools
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 pytest-cov-stub
32 ];
33
34 # Test incompatible with datetime's integer type requirements
35 disabledTests = [
36 "test_datetime_arg_wrong_value"
37 ];
38
39 pythonImportsCheck = [ "hightime" ];
40
41 meta = {
42 changelog = "https://github.com/ni/hightime/releases/tag/v${version}";
43 description = "Hightime Python API";
44 homepage = "https://github.com/ni/hightime";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ fsagbuya ];
47 };
48}