1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/science/math/bcal/default.nix

33 lines
758 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.8";
2018-02-20 18:29:04 +00:00
src = fetchFromGitHub {
owner = "jarun";
repo = "bcal";
rev = "v${version}";
sha256 = "0jdn46wzwq7yn3x6p1xyqarp52pcr0ghnfhkm7nyxv734g1abw7r";
2018-02-20 18:29:04 +00:00
};
nativeBuildInputs = [ python3Packages.pytest ];
doCheck = true;
2018-02-20 18:29:04 +00:00
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" ];
2018-02-20 18:29:04 +00:00
maintainers = with maintainers; [ jfrankenau ];
};
}