Files
nixpkgs/pkgs/development/python-modules/extension-helpers/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

62 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
build,
cython,
findutils,
pip,
pytestCheckHook,
pythonOlder,
setuptools-scm,
setuptools,
tomli,
wheel,
}:
buildPythonPackage rec {
pname = "extension-helpers";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "astropy";
repo = "extension-helpers";
tag = "v${version}";
hash = "sha256-coSgaPoz93CqJRb65xYs1sNOwoGhcxWGJF7Jc9N2W1I=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
nativeCheckInputs = [
build
cython
findutils
pip
pytestCheckHook
wheel
];
pythonImportsCheck = [ "extension_helpers" ];
enabledTestPaths = [ "extension_helpers/tests" ];
disabledTests = [
# https://github.com/astropy/extension-helpers/issues/43
"test_write_if_different"
];
meta = {
description = "Helpers to assist with building Python packages with compiled C/Cython extensions";
homepage = "https://github.com/astropy/extension-helpers";
changelog = "https://github.com/astropy/extension-helpers/blob/${src.tag}/CHANGES.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}