blob: 10a55e2e2ff12968285321e370c6da92bbf6688f (
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
|
{
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 ];
};
}
|