mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
python312Packages.extension-helpers: init at 1.1.1
Helpers to assist with building Python packages with compiled C/Cython extensions https://github.com/astropy/extension-helpers
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
cython,
|
||||
fetchFromGitHub,
|
||||
pip,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools-scm,
|
||||
setuptools,
|
||||
tomli,
|
||||
wheel,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "extension-helpers";
|
||||
version = "1.1.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "astropy";
|
||||
repo = "extension-helpers";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-pYCSLb6uuQ9ZtMZOQH0DxLlfgFv3tgH+AL35IN71cNI=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
dependencies = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pip
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "extension_helpers" ];
|
||||
|
||||
pytestFlagsArray = [ "extension_helpers/tests" ];
|
||||
|
||||
disabledTests = [
|
||||
# Test require network access
|
||||
"test_only_pyproject"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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/${version}/CHANGES.md";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -4022,6 +4022,8 @@ self: super: with self; {
|
||||
|
||||
exitcode = callPackage ../development/python-modules/exitcode { };
|
||||
|
||||
extension-helpers = callPackage ../development/python-modules/extension-helpers { };
|
||||
|
||||
extract-msg = callPackage ../development/python-modules/extract-msg { };
|
||||
|
||||
extractcode = callPackage ../development/python-modules/extractcode { };
|
||||
|
||||
Reference in New Issue
Block a user