From 4182bba9fedee636e39dcc5d33f6978d396d1f2c Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Thu, 25 Oct 2018 14:03:50 -0400 Subject: [PATCH] pythonPackages.spark_parser: 1.4.0 -> 1.8.7 --- .../python-modules/spark_parser/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +------------ 2 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/spark_parser/default.nix diff --git a/pkgs/development/python-modules/spark_parser/default.nix b/pkgs/development/python-modules/spark_parser/default.nix new file mode 100644 index 000000000000..badc99f5e377 --- /dev/null +++ b/pkgs/development/python-modules/spark_parser/default.nix @@ -0,0 +1,27 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +, click +}: + +buildPythonPackage rec { + pname = "spark_parser"; + version = "1.8.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "4c5e6064afbb3c114749016d585b0e4f9222d4ffa97a1854c9ab70b25783ef48"; + }; + + buildInputs = [ nose ]; + propagatedBuildInputs = [ click ]; + + meta = with stdenv.lib; { + description = ''An Early-Algorithm Context-free grammar Parser''; + homepage = "https://github.com/rocky/python-spark"; + license = licenses.mit; + maintainers = with maintainers; [raskin]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d5158c4fd80f..9c4d00f72604 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6835,24 +6835,7 @@ in { subprocess32 = callPackage ../development/python-modules/subprocess32 { }; - spark_parser = buildPythonPackage (rec { - name = "${pname}-${version}"; - pname = "spark_parser"; - version = "1.4.0"; - src = pkgs.fetchurl { - url = "mirror://pypi/s/${pname}/${name}.tar.gz"; - sha256 = "1r7d07kw4asgajvhq1gzln4g1qi2r13jw0s8c7d5z3g4kp8y0br8"; - }; - buildInputs = with self; [nose]; - propagatedBuildInputs = []; - meta = { - description = ''An Early-Algorithm Context-free grammar Parser''; - homepage = "https://github.com/rocky/python-spark"; - license = licenses.mit; - maintainers = with maintainers; [raskin]; - platforms = platforms.all; - }; - }); + spark_parser = callPackage ../development/python-modules/spark_parser { }; sphinx = callPackage ../development/python-modules/sphinx { };