at master 834 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 hatch-vcs, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "binary"; 12 version = "1.0.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "ofek"; 17 repo = "binary"; 18 tag = "v${version}"; 19 hash = "sha256-dU+E6MxAmH8AEGTW2/lZmtgRTinKCv9gDiVeb4n78U4="; 20 }; 21 22 build-system = [ 23 hatchling 24 hatch-vcs 25 ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ 30 "binary" 31 "binary.core" 32 ]; 33 34 meta = with lib; { 35 changelog = "https://github.com/ofek/binary/releases/tag/${src.tag}"; 36 description = "Easily convert between binary and SI units (kibibyte, kilobyte, etc.)"; 37 homepage = "https://github.com/ofek/binary"; 38 license = with licenses; [ 39 asl20 40 mit 41 ]; 42 maintainers = [ ]; 43 }; 44}