Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.1 kB · 93 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, cython, numpy,
# tests hypothesis, pytestCheckHook,
# passthru blis, numpy_1, gitUpdater,}:
buildPythonPackage rec { pname = "blis"; version = "1.3.0"; pyproject = true;
src = fetchFromGitHub { owner = "explosion"; repo = "cython-blis"; tag = "release-v${version}"; hash = "sha256-mSIfFjnLhPLqSNLHMS5gTeAmqmNfXpcbyH7ejv4YgQU="; };
build-system = [ setuptools cython numpy ];
env = # Fallback to generic architectures when necessary: # https://github.com/explosion/cython-blis?tab=readme-ov-file#building-blis-for-alternative-architectures lib.optionalAttrs ( # error: [Errno 2] No such file or directory: '/build/source/blis/_src/make/linux-cortexa57.jsonl' (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)
# clang: error: unknown argument '-mavx512pf'; did you mean '-mavx512f'? # Patching blis/_src/config/knl/make_defs.mk to remove the said flag does not work || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ) { BLIS_ARCH = "generic"; };
dependencies = [ numpy ];
pythonImportsCheck = [ "blis" ];
nativeCheckInputs = [ hypothesis pytestCheckHook ];
# remove src module, so tests use the installed module instead preCheck = '' rm -rf ./blis '';
disabledTestPaths = [ # ImportError: cannot import name 'NO_CONJUGATE' from 'blis.cy' "tests/test_dotv.py" ];
passthru = { tests = { numpy_1 = blis.overridePythonAttrs (old: { numpy = numpy_1; }); }; updateScript = gitUpdater { rev-prefix = "release-v"; }; };
meta = { changelog = "https://github.com/explosion/cython-blis/releases/tag/release-v${version}"; description = "BLAS-like linear algebra library"; homepage = "https://github.com/explosion/cython-blis"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ nickcao ]; };}