Merge pull request #107731 from freezeboy/update-bcal

This commit is contained in:
Sandro 2020-12-27 18:10:03 +01:00 committed by GitHub
commit 4ec809a7f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,16 @@
{ stdenv, fetchFromGitHub, python3Packages, readline }: { stdenv, fetchFromGitHub, python3Packages, readline, bc }:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bcal"; pname = "bcal";
version = "1.9"; version = "2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jarun"; owner = "jarun";
repo = "bcal"; repo = "bcal";
rev = "v${version}"; rev = "v${version}";
sha256 = "0h6qi5rvzl6c6fsfdpdb3l4jcgip03l18i0b1x08z1y89i56y8mm"; sha256 = "4vR5rcbNkoEdSRNoMH9qMHP3iWFxejkVfXNiYfwbo/A=";
}; };
nativeBuildInputs = [ python3Packages.pytest ]; nativeBuildInputs = [ python3Packages.pytest ];
@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
buildInputs = [ readline ]; buildInputs = [ readline ];
doCheck = true; doCheck = true;
checkInputs = [ bc ];
checkPhase = '' checkPhase = ''
python3 -m pytest test.py python3 -m pytest test.py
''; '';
@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Storage conversion and expression calculator"; description = "Storage conversion and expression calculator";
homepage = "https://github.com/jarun/bcal"; homepage = "https://github.com/jarun/bcal";
license = licenses.gpl3; license = licenses.gpl3Only;
platforms = [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ]; platforms = [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ];
maintainers = with maintainers; [ jfrankenau ]; maintainers = with maintainers; [ jfrankenau ];
}; };