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

34 lines
781 B
Nix
Raw Normal View History

2018-02-20 18:29:04 +00:00
{ stdenv, fetchFromGitHub, python3Packages }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "bcal-${version}";
version = "1.7";
src = fetchFromGitHub {
owner = "jarun";
repo = "bcal";
rev = "v${version}";
sha256 = "08cqp2jysvy743gmwpzkbqhybsb49n65r63z3if53m3y59qg4aw8";
};
nativeBuildInputs = [ python3Packages.pytest ];
2018-03-08 04:11:52 +00:00
doCheck = !stdenv.isDarwin;
2018-02-20 18:29:04 +00:00
checkPhase = ''
python3 -m pytest test.py
'';
makeFlags = [ "CC=cc" ];
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
meta = {
description = "Storage conversion and expression calculator";
homepage = https://github.com/jarun/bcal;
license = licenses.gpl3;
platforms = [ "x86_64-darwin" "x86_64-linux" ];
maintainers = with maintainers; [ jfrankenau ];
};
}