nixpkgs/pkgs/applications/science/math/bcal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
748 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, readline
, bc
, python3Packages
}:
2018-02-20 18:29:04 +00:00
stdenv.mkDerivation rec {
pname = "bcal";
2022-02-10 19:05:57 +00:00
version = "2.4";
2018-02-20 18:29:04 +00:00
src = fetchFromGitHub {
owner = "jarun";
repo = "bcal";
rev = "v${version}";
2022-02-10 19:05:57 +00:00
sha256 = "sha256-PleWU2yyJzkUAZEvEYoCGdpEXqOgRvZK9zXTYrxRtQU=";
2018-02-20 18:29:04 +00:00
};
2018-08-03 07:08:26 +00:00
buildInputs = [ readline ];
installFlags = [ "PREFIX=$(out)" ];
doCheck = true;
2018-02-20 18:29:04 +00:00
nativeCheckInputs = [ bc python3Packages.pytestCheckHook ];
pytestFlagsArray = [ "test.py" ];
2018-02-20 18:29:04 +00:00
meta = with lib; {
2018-02-20 18:29:04 +00:00
description = "Storage conversion and expression calculator";
homepage = "https://github.com/jarun/bcal";
2020-12-27 15:49:53 +00:00
license = licenses.gpl3Only;
platforms = platforms.unix;
2018-02-20 18:29:04 +00:00
maintainers = with maintainers; [ jfrankenau ];
};
}