1{ lib
2, buildPythonPackage
3, fetchPypi
4, findutils
5, pytestCheckHook
6, pythonOlder
7, pip
8, setuptools-scm
9, wheel
10}:
11
12buildPythonPackage rec {
13 pname = "extension-helpers";
14 version = "1.0.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "ca1bfac67c79cf4a7a0c09286ce2a24eec31bf17715818d0726318dd0e5050e6";
22 };
23
24 nativeBuildInputs = [
25 setuptools-scm
26 wheel
27 ];
28
29 patches = [ ./permissions.patch ];
30
31 nativeCheckInputs = [
32 findutils
33 pip
34 pytestCheckHook
35 ];
36
37 # avoid import mismatch errors, as conftest.py is copied to build dir
38 pytestFlagsArray = [
39 "extension_helpers"
40 ];
41
42 disabledTests = [
43 # https://github.com/astropy/extension-helpers/issues/43
44 "test_write_if_different"
45 ];
46
47 pythonImportsCheck = [
48 "extension_helpers"
49 ];
50
51 meta = with lib; {
52 description = "Utilities for building and installing packages in the Astropy ecosystem";
53 homepage = "https://github.com/astropy/extension-helpers";
54 license = licenses.bsd3;
55 maintainers = with maintainers; [ rmcgibbo ];
56 };
57}