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