2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
41 lines
802 B
Nix
41 lines
802 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, pytestCheckHook
|
|
, setuptools_scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "extension-helpers";
|
|
version = "0.1";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "10iqjzmya2h4sk765dlm1pbqypwlqyh8rw59a5m9i63d3klnz2mc";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools_scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
# avoid importing local module
|
|
preCheck = ''
|
|
cd extension_helpers
|
|
'';
|
|
|
|
# assumes setup.py is in pwd
|
|
disabledTests = [ "compiler_module" ];
|
|
|
|
meta = with lib; {
|
|
description = "Helpers to assist with building packages with compiled C/Cython extensions";
|
|
homepage = "https://github.com/astropy/extension-helpers";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|