summary refs log tree commit diff
path: root/pkgs/applications/science/math/sage/pybrial.nix
blob: f5cb39603c325b6ca82afcd5123212ca1b6f3250 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv
, fetchFromGitHub
, buildPythonPackage
}:
# This has a cyclic dependency with sage. I don't include sage in the
# buildInputs and let python figure it out at runtime. Because of this,
# I don't include the package in the main nipxkgs tree. It wouldn't be useful
# outside of sage anyways (as you could just directly depend on sage and use
# it).
buildPythonPackage rec {
    pname = "pyBRiAl";
    version = "1.2.3";

    # included with BRiAl source
    src = fetchFromGitHub {
      owner = "BRiAl";
      repo = "BRiAl";
      rev = "${version}";
      sha256 = "0qy4cwy7qrk4zg151cmws5cglaa866z461cnj9wdnalabs7v7qbg";
    };

    sourceRoot = "source/sage-brial";

    meta = with stdenv.lib; {
      description = "python implementation of BRiAl";
      license = licenses.gpl2;
      maintainers = with maintainers; [ timokau ];
    };
}