blob: 87c00c52e548610842604cb095d506312faed564 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "bitmath";
version = "2.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "timlnx";
repo = "bitmath";
tag = "v${finalAttrs.version}";
hash = "sha256-9hiwIpDIAU+N+LhlJ9qlKBZQibbrwwhGM77fvEnABRI=";
};
build-system = [ hatchling ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "bitmath" ];
meta = {
description = "Module for representing and manipulating file sizes with different prefix";
homepage = "https://github.com/timlnx/bitmath";
changelog = "https://github.com/timlnx/bitmath/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ twey ];
mainProgram = "bitmath";
};
})
|