1{ lib, buildPythonPackage, fetchPypi, isPy3k, progressbar231 ? null, progressbar33, mock }: 2 3buildPythonPackage rec { 4 pname = "bitmath"; 5 version = "1.3.3.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "293325f01e65defe966853111df11d39215eb705a967cb115851da8c4cfa3eb8"; 10 }; 11 12 nativeCheckInputs = [ (if isPy3k then progressbar33 else progressbar231) mock ]; 13 14 meta = with lib; { 15 description = "Module for representing and manipulating file sizes with different prefix"; 16 homepage = "https://github.com/tbielawa/bitmath"; 17 license = licenses.mit; 18 maintainers = with maintainers; [ twey ]; 19 }; 20}