587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
38 lines
763 B
Nix
38 lines
763 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, readline
|
|
, bc
|
|
, python3Packages
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bcal";
|
|
version = "2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jarun";
|
|
repo = "bcal";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-PleWU2yyJzkUAZEvEYoCGdpEXqOgRvZK9zXTYrxRtQU=";
|
|
};
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [ bc python3Packages.pytestCheckHook ];
|
|
|
|
pytestFlagsArray = [ "test.py" ];
|
|
|
|
meta = with lib; {
|
|
description = "Storage conversion and expression calculator";
|
|
mainProgram = "bcal";
|
|
homepage = "https://github.com/jarun/bcal";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|