Files
nixpkgs/pkgs/development/python-modules/hightime/default.nix
T
2026-01-23 00:28:12 +01:00

46 lines
938 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage (finalAttrs: {
pname = "hightime";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ni";
repo = "hightime";
rev = "v${finalAttrs.version}";
hash = "sha256-5WEr2tOxQap+otV8DCdIi3MkfHol4TU4qZXf4u2EQhY=";
};
build-system = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
# Test incompatible with datetime's integer type requirements
disabledTests = [
"test_datetime_arg_wrong_value"
];
pythonImportsCheck = [ "hightime" ];
meta = {
changelog = "https://github.com/ni/hightime/releases/tag/v${finalAttrs.version}";
description = "Hightime Python API";
homepage = "https://github.com/ni/hightime";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fsagbuya ];
};
})