2021-05-19 14:35:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, readline
|
|
|
|
, bc
|
|
|
|
, python3Packages
|
|
|
|
}:
|
2018-02-20 18:29:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "bcal";
|
2021-10-29 02:44:23 +00:00
|
|
|
version = "2.3";
|
2018-02-20 18:29:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jarun";
|
|
|
|
repo = "bcal";
|
|
|
|
rev = "v${version}";
|
2021-10-29 02:44:23 +00:00
|
|
|
sha256 = "sha256-1k8Q+I1Mc196QL+x4yXzRi7WLBf30U4sJyl0rXisW7k=";
|
2018-02-20 18:29:04 +00:00
|
|
|
};
|
|
|
|
|
2018-08-03 07:08:26 +00:00
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
2021-05-19 14:35:59 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2018-02-21 12:41:12 +00:00
|
|
|
doCheck = true;
|
2018-02-20 18:29:04 +00:00
|
|
|
|
2021-05-19 14:35:59 +00:00
|
|
|
checkInputs = [ bc python3Packages.pytestCheckHook ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "test.py" ];
|
2018-02-20 18:29:04 +00:00
|
|
|
|
2021-05-19 14:35:59 +00:00
|
|
|
meta = with lib; {
|
2018-02-20 18:29:04 +00:00
|
|
|
description = "Storage conversion and expression calculator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jarun/bcal";
|
2020-12-27 15:49:53 +00:00
|
|
|
license = licenses.gpl3Only;
|
2021-05-19 14:35:59 +00:00
|
|
|
platforms = platforms.unix;
|
2018-02-20 18:29:04 +00:00
|
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
|
|
};
|
|
|
|
}
|