From 74029a21bf01ac0ebd6d4c16102977da3d1a7dda Mon Sep 17 00:00:00 2001 From: Johannes Frankenau Date: Tue, 20 Feb 2018 19:29:04 +0100 Subject: bcal: init at 1.7 --- pkgs/applications/science/math/bcal/default.nix | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/applications/science/math/bcal/default.nix (limited to 'pkgs/applications') diff --git a/pkgs/applications/science/math/bcal/default.nix b/pkgs/applications/science/math/bcal/default.nix new file mode 100644 index 000000000000..baede83f6514 --- /dev/null +++ b/pkgs/applications/science/math/bcal/default.nix @@ -0,0 +1,33 @@ +{ 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 ]; + + doCheck = true; + 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 ]; + }; +} -- cgit 1.4.1