2018-08-03 09:08:26 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages, readline }:
|
2018-02-20 19:29:04 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bcal";
|
2018-08-03 09:08:26 +02:00
|
|
|
version = "1.9";
|
2018-02-20 19:29:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jarun";
|
|
|
|
repo = "bcal";
|
|
|
|
rev = "v${version}";
|
2018-08-03 09:08:26 +02:00
|
|
|
sha256 = "0h6qi5rvzl6c6fsfdpdb3l4jcgip03l18i0b1x08z1y89i56y8mm";
|
2018-02-20 19:29:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3Packages.pytest ];
|
|
|
|
|
2018-08-03 09:08:26 +02:00
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
2018-02-21 13:41:12 +01:00
|
|
|
doCheck = true;
|
2018-02-20 19:29:04 +01:00
|
|
|
checkPhase = ''
|
|
|
|
python3 -m pytest test.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Storage conversion and expression calculator";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/jarun/bcal";
|
2018-02-20 19:29:04 +01:00
|
|
|
license = licenses.gpl3;
|
2018-02-21 13:41:12 +01:00
|
|
|
platforms = [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ];
|
2018-02-20 19:29:04 +01:00
|
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
|
|
};
|
|
|
|
}
|