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
35 lines
784 B
Nix
35 lines
784 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "calmsize";
|
|
version = "0.1.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Stonesjtu";
|
|
repo = "calmsize";
|
|
tag = version;
|
|
hash = "sha256-D4UMzgYq++w6+Od0t9mDP4S+3Tc/ME5++NOlozXXALQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "calmsize" ];
|
|
|
|
meta = {
|
|
description = "Take a number of bytes and return a human-readable string";
|
|
homepage = "https://github.com/Stonesjtu/calmsize";
|
|
changelog = "https://github.com/Stonesjtu/calmsize/blob/${version}/CHANGES.md";
|
|
license = lib.licenses.zpl21;
|
|
maintainers = with lib.maintainers; [ jherland ];
|
|
};
|
|
}
|