Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions pkgs/development/python-modules/pycparser-fake-libc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
}:

buildPythonPackage rec {
pname = "pycparser-fake-libc";
version = "2.21";
pyproject = true;

# Fetching from GitHub causes headers to not be included
src = fetchPypi {
inherit pname version;
hash = "sha256-pG+12tpUgYLDnaNAps1zZoUTWf+3je4nzGGdZcM6Ueg=";
};

build-system = [ setuptools ];

pythonImportsCheck = [ "pycparser_fake_libc" ];

# No tests
doCheck = false;

meta = {
changelog = "https://github.com/ThomasGerstenberg/pycparser-fake-libc/releases/tag/v${version}";
description = "Pip-installable package which contains the fake libc headers from pycparser ";
homepage = "https://github.com/ThomasGerstenberg/pycparser-fake-libc";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.gigahawk ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13383,6 +13383,8 @@ self: super: with self; {

pycparser = callPackage ../development/python-modules/pycparser { };

pycparser-fake-libc = callPackage ../development/python-modules/pycparser-fake-libc { };

pycrashreport = callPackage ../development/python-modules/pycrashreport { };

pycrdt = callPackage ../development/python-modules/pycrdt { };
Expand Down
Loading