1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, justbases 5, unittestCheckHook 6, hypothesis 7}: 8 9buildPythonPackage rec { 10 pname = "justbytes"; 11 version = "0.15.2"; 12 13 src = fetchFromGitHub { 14 owner = "mulkieran"; 15 repo = pname; 16 rev = "refs/tags/v${version}"; 17 hash = "sha256-+jwIK1ZU+j58VoOfZAm7GdFy7KHU28khwzxhYhcws74="; 18 }; 19 20 propagatedBuildInputs = [ justbases ]; 21 nativeCheckInputs = [ unittestCheckHook hypothesis ]; 22 23 meta = with lib; { 24 description = "computing with and displaying bytes"; 25 homepage = "https://github.com/mulkieran/justbytes"; 26 license = licenses.lgpl2Plus; 27 maintainers = with maintainers; [ nickcao ]; 28 }; 29}