forked from efabless/ioplace_parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
52 lines (43 loc) · 965 Bytes
/
default.nix
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
antlr4_10,
black,
lib,
nix-gitignore,
buildPythonPackage,
poetry-core,
setuptools,
pytest,
coverage,
}:
let
antlr4_10-python3-runtime = buildPythonPackage rec {
pname = "antlr4-python3-runtime";
inherit (antlr4_10.runtime.cpp) version src;
sourceRoot = "source/runtime/Python3";
doCheck = false;
meta = with lib; {
description = "Runtime for ANTLR";
homepage = "https://www.antlr.org/";
license = licenses.bsd3;
};
};
in buildPythonPackage {
name = "ioplace_parser";
version = (builtins.fromTOML (builtins.readFile ./pyproject.toml)).tool.poetry.version;
format = "pyproject";
src = nix-gitignore.gitignoreSourcePure ./.gitignore ./.;
nativeBuildInputs = [
poetry-core
antlr4_10
];
propagatedBuildInputs = [
antlr4_10-python3-runtime
];
nativeCheckInputs = [
pytest
black
coverage
];
preBuild = "make antlr";
checkPhase = "pytest";
}