depot/third_party/nixpkgs/pkgs/development/python-modules/extension-helpers/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

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 = [ ];
};
}