1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "calmsize";
11 version = "0.1.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "Stonesjtu";
16 repo = "calmsize";
17 tag = version;
18 hash = "sha256-D4UMzgYq++w6+Od0t9mDP4S+3Tc/ME5++NOlozXXALQ=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "calmsize" ];
26
27 meta = {
28 description = "Take a number of bytes and return a human-readable string";
29 homepage = "https://github.com/Stonesjtu/calmsize";
30 changelog = "https://github.com/Stonesjtu/calmsize/blob/${version}/CHANGES.md";
31 license = lib.licenses.zpl21;
32 maintainers = with lib.maintainers; [ jherland ];
33 };
34}