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