diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2019-08-14 14:26:49 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer117@gmail.com> | 2019-09-29 03:14:22 -0700 |
commit | 24fde6615657f8de75d1ea5f73cde3694eac33f2 (patch) | |
tree | 0286d467e0b998b11183aaa446429ac437193112 /pkgs/development/python-modules/antlr4-python3-runtime | |
parent | cca1670bcda2ff78e05c6260b1ef594252077588 (diff) | |
download | nixpkgs-24fde6615657f8de75d1ea5f73cde3694eac33f2.tar nixpkgs-24fde6615657f8de75d1ea5f73cde3694eac33f2.tar.gz nixpkgs-24fde6615657f8de75d1ea5f73cde3694eac33f2.tar.bz2 nixpkgs-24fde6615657f8de75d1ea5f73cde3694eac33f2.tar.lz nixpkgs-24fde6615657f8de75d1ea5f73cde3694eac33f2.tar.xz nixpkgs-24fde6615657f8de75d1ea5f73cde3694eac33f2.tar.zst nixpkgs-24fde6615657f8de75d1ea5f73cde3694eac33f2.zip |
pythonPackages.antlr4-python{2,3}-runtime: use antlr4 source
Diffstat (limited to 'pkgs/development/python-modules/antlr4-python3-runtime')
-rw-r--r-- | pkgs/development/python-modules/antlr4-python3-runtime/default.nix | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix index 3ebba9f9d38..0fade1362c9 100644 --- a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix +++ b/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; }; } |