1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 unittestCheckHook, 6 hypothesis, 7}: 8 9buildPythonPackage rec { 10 pname = "justbases"; 11 version = "0.15.2"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "mulkieran"; 16 repo = "justbases"; 17 tag = "v${version}"; 18 hash = "sha256-XraUh3beI2JqKPRHYN5W3Tn3gg0GJCwhnhHIOFdzh6U="; 19 }; 20 21 nativeCheckInputs = [ 22 unittestCheckHook 23 hypothesis 24 ]; 25 26 meta = with lib; { 27 description = "Conversion of ints and rationals to any base"; 28 homepage = "https://github.com/mulkieran/justbases"; 29 changelog = "https://github.com/mulkieran/justbases/blob/v${version}/CHANGES.txt"; 30 license = licenses.lgpl2Plus; 31 maintainers = with maintainers; [ nickcao ]; 32 }; 33}