diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-01-22 01:10:58 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-23 01:09:42 +0100 |
commit | 30212977444dbeaf294902b1dde819d2eb17c524 (patch) | |
tree | 512f607f05a4238c8dabd7f7125c4c166e5ac533 /pkgs/development/python-modules/numexpr | |
parent | d4528ddd5b2c7f8b926e748f477798bc741fe2f5 (diff) |
python3Packages.numexpr: add packaging
Diffstat (limited to 'pkgs/development/python-modules/numexpr')
-rw-r--r-- | pkgs/development/python-modules/numexpr/default.nix | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/numexpr/default.nix b/pkgs/development/python-modules/numexpr/default.nix index 72c38a8946fbd..ffc422e9b421d 100644 --- a/pkgs/development/python-modules/numexpr/default.nix +++ b/pkgs/development/python-modules/numexpr/default.nix @@ -1,32 +1,38 @@ { lib , buildPythonPackage , fetchPypi -, python , numpy +, packaging +, python +, pythonOlder }: buildPythonPackage rec { pname = "numexpr"; version = "2.8.1"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "cd779aa44dd986c4ef10163519239602b027be06a527946656207acf1f58113b"; + hash = "sha256-zXeapE3ZhsTvEBY1GSOWArAnvgalJ5RmViB6zx9YETs="; }; - # Remove existing site.cfg, use the one we built for numpy. - preBuild = '' - ln -s ${numpy.cfg} site.cfg - ''; - nativeBuildInputs = [ numpy ]; propagatedBuildInputs = [ numpy + packaging ]; + preBuild = '' + # Remove existing site.cfg, use the one we built for numpy + ln -s ${numpy.cfg} site.cfg + ''; + checkPhase = '' runtest="$(pwd)/numexpr/tests/test_numexpr.py" pushd "$out" @@ -34,9 +40,14 @@ buildPythonPackage rec { popd ''; - meta = { + pythonImportsCheck = [ + "numexpr" + ]; + + meta = with lib; { description = "Fast numerical array expression evaluator for NumPy"; homepage = "https://github.com/pydata/numexpr"; - license = lib.licenses.mit; + license = licenses.mit; + maintainers = with maintainers; [ ]; }; } |