pythonPackages.pycparser: Move to own file
This commit is contained in:
parent
1c69fccc81
commit
8fab23d694
22
pkgs/development/python-modules/pycparser/default.nix
Normal file
22
pkgs/development/python-modules/pycparser/default.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, python }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycparser";
|
||||
version = "2.14";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "C parser in Python";
|
||||
homepage = https://github.com/eliben/pycparser;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
}
|
@ -1842,26 +1842,7 @@ in {
|
||||
|
||||
pycontracts = callPackage ../development/python-modules/pycontracts { };
|
||||
|
||||
pycparser = buildPythonPackage rec {
|
||||
name = "pycparser-${version}";
|
||||
version = "2.14";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pycparser/${name}.tar.gz";
|
||||
sha256 = "7959b4a74abdc27b312fed1c21e6caf9309ce0b29ea86b591fd2e99ecdf27f73";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s tests
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "C parser in Python";
|
||||
homepage = https://github.com/eliben/pycparser;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
};
|
||||
pycparser = callPackage ../development/python-modules/pycparser { };
|
||||
|
||||
pydub = callPackage ../development/python-modules/pydub {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user