pythonPackages.funcparserlib: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 15:58:13 -04:00 committed by Frederik Rietdijk
parent c9b960cdff
commit a3f18ca87f
2 changed files with 32 additions and 22 deletions

View File

@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, python
, isPy3k
}:
buildPythonPackage rec {
pname = "funcparserlib";
version = "0.3.6";
src = fetchPypi {
inherit pname version;
sha256 = "b7992eac1a3eb97b3d91faa342bfda0729e990bd8a43774c1592c091e563c91d";
};
checkPhase = ''
${python.interpreter} -m unittest discover
'';
# Tests are Python 2.x only judging from SyntaxError
doCheck = !(isPy3k);
meta = with stdenv.lib; {
description = "Recursive descent parsing library based on functional combinators";
homepage = https://code.google.com/p/funcparserlib/;
license = licenses.mit;
platforms = platforms.unix;
};
}

View File

@ -1796,28 +1796,7 @@ in {
};
});
funcparserlib = buildPythonPackage rec {
name = "funcparserlib-0.3.6";
src = pkgs.fetchurl {
url = "mirror://pypi/f/funcparserlib/${name}.tar.gz";
sha256 = "b7992eac1a3eb97b3d91faa342bfda0729e990bd8a43774c1592c091e563c91d";
};
checkPhase = ''
${python.interpreter} -m unittest discover
'';
# Tests are Python 2.x only judging from SyntaxError
doCheck = !(isPy3k);
meta = {
description = "Recursive descent parsing library based on functional combinators";
homepage = https://code.google.com/p/funcparserlib/;
license = licenses.mit;
platforms = platforms.unix;
};
};
funcparserlib = callPackage ../development/python-modules/funcparserlib { };
fastcache = callPackage ../development/python-modules/fastcache { };