2018-02-20 19:29:04 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bcal-${version}";
|
2018-02-21 13:41:12 +01:00
|
|
|
version = "1.8";
|
2018-02-20 19:29:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jarun";
|
|
|
|
repo = "bcal";
|
|
|
|
rev = "v${version}";
|
2018-02-21 13:41:12 +01:00
|
|
|
sha256 = "0jdn46wzwq7yn3x6p1xyqarp52pcr0ghnfhkm7nyxv734g1abw7r";
|
2018-02-20 19:29:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3Packages.pytest ];
|
|
|
|
|
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";
|
|
|
|
homepage = https://github.com/jarun/bcal;
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|