1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "binary";
12 version = "1.0.0";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-bsAQ5Y9zMevIvJY42+bGbWNd5g1YGLByO+9N6tDsKKY=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 pythonImportsCheck = [
27 "binary"
28 "binary.core"
29 ];
30
31 meta = with lib; {
32 description = "Easily convert between binary and SI units (kibibyte, kilobyte, etc.)";
33 homepage = "https://github.com/ofek/binary";
34 license = with licenses; [
35 asl20
36 mit
37 ];
38 maintainers = with maintainers; [ ];
39 };
40}