nixpkgs/pkgs/applications/science/math/bcal/default.nix
Johannes Frankenau 59cc47d802 bcal: 1.7 -> 1.8
The tests failed for a good reason on Darwin and should not have been
disabled. The issue has been resolved upstream with version 1.8 which
now also supports AArch64.
2018-03-12 18:36:26 +01:00

33 lines
758 B
Nix

{ stdenv, fetchFromGitHub, python3Packages }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "bcal-${version}";
version = "1.8";
src = fetchFromGitHub {
owner = "jarun";
repo = "bcal";
rev = "v${version}";
sha256 = "0jdn46wzwq7yn3x6p1xyqarp52pcr0ghnfhkm7nyxv734g1abw7r";
};
nativeBuildInputs = [ python3Packages.pytest ];
doCheck = true;
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;
platforms = [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ];
maintainers = with maintainers; [ jfrankenau ];
};
}