59cc47d802
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.
33 lines
758 B
Nix
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 ];
|
|
};
|
|
}
|