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