81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
42 lines
884 B
Nix
42 lines
884 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, findutils
|
|
, pytestCheckHook
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "extension-helpers";
|
|
version = "0.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "10iqjzmya2h4sk765dlm1pbqypwlqyh8rw59a5m9i63d3klnz2mc";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
patches = [ ./permissions.patch ];
|
|
|
|
checkInputs = [ findutils pytestCheckHook ];
|
|
|
|
# avoid import mismatch errors, as conftest.py is copied to build dir
|
|
pytestFlagsArray = [
|
|
"extension_helpers"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"extension_helpers"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Utilities for building and installing packages in the Astropy ecosystem";
|
|
homepage = "https://github.com/astropy/extension-helpers";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.rmcgibbo ];
|
|
};
|
|
}
|