mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-06 13:23:41 +00:00
Diff: https://github.com/timlnx/bitmath/compare/v1.3.3.1...v2.1.1 Changelog: https://github.com/timlnx/bitmath/releases/tag/v2.1.1
36 lines
842 B
Nix
36 lines
842 B
Nix
{
|
|
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";
|
|
};
|
|
})
|