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