Files
nixpkgs/pkgs/development/python-modules/essentials/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.0 KiB
Nix

{
buildPythonPackage,
fetchFromGitHub,
hatchling,
pydantic,
pytest-asyncio,
pytestCheckHook,
stdenv,
lib,
}:
buildPythonPackage rec {
pname = "essentials";
version = "1.1.6";
pyproject = true;
src = fetchFromGitHub {
owner = "Neoteroi";
repo = "essentials";
tag = "v${version}";
hash = "sha256-wOZ0y6sAPEy2MgcwmM9SjnULe6oWlVuNeC7Zl070CK4=";
};
build-system = [ hatchling ];
nativeCheckInputs = [
pydantic
pytest-asyncio
pytestCheckHook
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# time.sleep(0.01) can be up to 0.05s on darwin
"test_stopwatch"
"test_stopwatch_with_context_manager"
];
pythonImportsCheck = [ "essentials" ];
meta = {
homepage = "https://github.com/Neoteroi/essentials";
description = "General purpose classes and functions";
changelog = "https://github.com/Neoteroi/essentials/releases/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
aldoborrero
zimbatm
];
};
}