python3Packages.bitmath: 1.3.3.1 -> 2.1.1

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
This commit is contained in:
Fabian Affolter
2026-05-25 22:41:50 +02:00
parent 2372255a5b
commit 9b9bbc9018
@@ -1,33 +1,35 @@
{
lib,
buildPythonPackage,
fetchPypi,
isPy3k,
progressbar231 ? null,
progressbar33,
mock,
fetchFromGitHub,
hatchling,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "bitmath";
version = "1.3.3.1";
format = "setuptools";
version = "2.1.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "293325f01e65defe966853111df11d39215eb705a967cb115851da8c4cfa3eb8";
src = fetchFromGitHub {
owner = "timlnx";
repo = "bitmath";
tag = "v${finalAttrs.version}";
hash = "sha256-9hiwIpDIAU+N+LhlJ9qlKBZQibbrwwhGM77fvEnABRI=";
};
nativeCheckInputs = [
(if isPy3k then progressbar33 else progressbar231)
mock
];
build-system = [ hatchling ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "bitmath" ];
meta = {
description = "Module for representing and manipulating file sizes with different prefix";
mainProgram = "bitmath";
homepage = "https://github.com/tbielawa/bitmath";
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";
};
}
})