blob: 532c9dc3cc992d85b1225c8f41c429f0c3330189 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
buildPythonPackage,
fetchFromGitHub,
hatchling,
pydantic,
pytest-asyncio,
pytestCheckHook,
stdenv,
lib,
}:
buildPythonPackage rec {
pname = "essentials";
version = "1.1.9";
pyproject = true;
src = fetchFromGitHub {
owner = "Neoteroi";
repo = "essentials";
tag = "v${version}";
hash = "sha256-kKAXCtcl6duVpuGDnSqVfJmfltv9ybU8Gmr3y32Dg9I=";
};
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
];
};
}
|