diff --git a/pkgs/development/python-modules/uarray/default.nix b/pkgs/development/python-modules/uarray/default.nix index acf010a08e74..479fd09413a6 100644 --- a/pkgs/development/python-modules/uarray/default.nix +++ b/pkgs/development/python-modules/uarray/default.nix @@ -2,57 +2,42 @@ lib, buildPythonPackage, fetchFromGitHub, - scikit-build-core, - setuptools, - setuptools-scm, - cmake, - ninja, - matchpy, - numpy, - typing-extensions, + meson-python, + versioningit, + pkg-config, nix-update-script, pytestCheckHook, - pytest-cov-stub, }: buildPythonPackage rec { pname = "uarray"; - version = "0.9.3"; + version = "0.9.4"; pyproject = true; src = fetchFromGitHub { owner = "Quansight-Labs"; repo = "uarray"; tag = version; - hash = "sha256-Nog7jvRG/EFf3n3W2DWC7UML5NyrlaaS0ECis5rtCSk="; + hash = "sha256-gCoSpyFPQTIi86y+4xtRb+vsRkjZ2O6KcCj8mj8tcTQ="; }; + preBuild = '' + echo "__version__ = '$version'" > src/uarray/_version.py + ''; + build-system = [ - scikit-build-core - setuptools - setuptools-scm - cmake - ninja + meson-python + versioningit ]; - dontUseCmakeConfigure = true; - - dependencies = [ - matchpy - numpy - typing-extensions + nativeBuildInputs = [ + pkg-config ]; nativeCheckInputs = [ pytestCheckHook - pytest-cov-stub ]; - # Tests must be run from outside the source directory - preCheck = '' - cd $TMP - ''; - pytestFlags = [ "--pyargs" "uarray"