aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-18 16:32:00 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-18 16:32:00 +0000
commit0f74f62ee25ac2d21bd67c29b8efc3ad079a72a8 (patch)
treebd701e982d896952f4291e4b795c85bb581593b8 /nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix
parentdae1ae41b3a575e87d411e0cd9daa42a85c5aa89 (diff)
parent1c40ee6fc44f7eb474c69ea070a43247a1a2c83c (diff)
Merge commit '1c40ee6fc44f7eb474c69ea070a43247a1a2c83c'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix b/nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix
index 3ebba9f9d38..0fade1362c9 100644
--- a/nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix
@@ -1,18 +1,22 @@
-{ stdenv, fetchPypi, buildPythonPackage, isPy3k }:
+{ lib, buildPythonPackage, isPy3k, python
+, antlr4
+}:
buildPythonPackage rec {
pname = "antlr4-python3-runtime";
- version = "4.7.2";
+ inherit (antlr4.runtime.cpp) version src;
disabled = !isPy3k;
- src = fetchPypi {
- inherit pname version;
- sha256 = "02xm7ccsf51vh4xsnhlg6pvchm1x3ckgv9kwm222w5drizndr30n";
- };
+ sourceRoot = "source/runtime/Python3";
+
+ checkPhase = ''
+ cd test
+ ${python.interpreter} ctest.py
+ '';
- meta = {
+ meta = with lib; {
description = "Runtime for ANTLR";
homepage = "https://www.antlr.org/";
- license = stdenv.lib.licenses.bsd3;
+ license = licenses.bsd3;
};
}