1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "astropy-helpers";
10 version = "4.0.1";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "astropy";
15 repo = "astropy-helpers";
16 tag = "v${version}";
17 hash = "sha256-MjL/I+ApyoyoD2NmKuKWpDbyuEgvBb2OBhxqj/w/3lk=";
18 };
19
20 patches = [
21 # Fixes build with Python 3.12+
22 ./python-imp.patch
23 ];
24
25 build-system = [ setuptools ];
26
27 pythonImportsCheck = [ "astropy_helpers" ];
28
29 meta = {
30 description = "Utilities for building and installing Astropy, Astropy affiliated packages, and their respective documentation";
31 homepage = "https://github.com/astropy/astropy-helpers";
32 license = lib.licenses.bsd3;
33 maintainers = [ lib.maintainers.smaret ];
34 };
35}