2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchFromGitHub
|
2022-08-12 12:06:08 +00:00
|
|
|
, justbases
|
2023-05-24 13:37:59 +00:00
|
|
|
, unittestCheckHook
|
2022-08-12 12:06:08 +00:00
|
|
|
, hypothesis
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "justbytes";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.15.2";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mulkieran";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-+jwIK1ZU+j58VoOfZAm7GdFy7KHU28khwzxhYhcws74=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ justbases ];
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook hypothesis ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "computing with and displaying bytes";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/mulkieran/justbytes";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = with maintainers; [ nickcao ];
|
|
|
|
};
|
|
|
|
}
|