Files
nixpkgs/pkgs/development/python-modules/autopxd2/default.nix
Elijah Shaw-Rutschman e7eaf947a8 python3Packages.autopxd2: fix pname
Change pname from "python-autopxd2" to "autopxd2" to match the distribution name in pyproject.toml and resolve pythonMetadataCheckPhase failure.

Related to #545533
2026-08-17 22:12:03 -05:00

57 lines
957 B
Nix

{
buildPythonPackage,
lib,
fetchPypi,
setuptools,
pycparser,
click,
pytestCheckHook,
cython,
}:
buildPythonPackage rec {
pname = "autopxd2";
version = "3.2.3";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
pname = "autopxd2";
inherit version;
hash = "sha256-Zf44gmkuWvp8lfrScq4GAhOisLYu4scyuNp1Cn3lnVc=";
};
build-system = [
setuptools
];
dependencies = [
pycparser
click
cython
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTestMarks = [
# downloads headers at runtime
"real_headers"
# needs clang2 python module
"libclang"
];
enabledTestPaths = [
"test/"
];
meta = {
homepage = "https://github.com/elijahr/python-autopxd2";
mainProgram = "autopxd";
maintainers = with lib.maintainers; [ bot-wxt1221 ];
license = lib.licenses.mit;
description = "Generates .pxd files automatically from .h files";
};
}