1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, python
5, isPy27
6, pinqSupport ? false, sqlalchemy
7, pyxlSupport ? false, pyxl3
8}:
9
10buildPythonPackage rec {
11 # https://github.com/lihaoyi/macropy/issues/94
12 version = "1.1.0b2";
13 pname = "macropy";
14 disabled = isPy27;
15
16 src = fetchFromGitHub {
17 owner = "lihaoyi";
18 repo = pname;
19 rev = "v${version}";
20 sha256 = "1bd2fzpa30ddva3f8lw2sbixxf069idwib8srd64s5v46ricm2cf";
21 };
22
23 # js_snippets extra only works with python2
24 propagatedBuildInputs = [ ]
25 ++ lib.optional pinqSupport sqlalchemy
26 ++ lib.optional pyxlSupport pyxl3;
27
28 checkPhase = ''
29 ${python.interpreter} run_tests.py
30 '';
31
32 meta = with lib; {
33 broken = true;
34 homepage = "https://github.com/lihaoyi/macropy";
35 description = "Macros in Python: quasiquotes, case classes, LINQ and more";
36 license = licenses.mit;
37 maintainers = [ maintainers.costrouc ];
38 };
39}